diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | win32/PlatWin.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 7a7872ce5..26ac34f5f 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -586,6 +586,10 @@ <a href="https://sourceforge.net/p/scintilla/bugs/2196/">Bug #2196</a>, <a href="https://sourceforge.net/p/scintilla/bugs/2312/">Bug #2312</a>. </li> + <li> + Fix problem with horizontally inverted glyphs with buffered drawing and WS_EX_LAYOUTRTL set on Win32 GDI. + <a href="https://sourceforge.net/p/scintilla/feature-requests/1435/">Feature #1435</a>. + </li> </ul> <h3> <a href="https://www.scintilla.org/scintilla522.zip">Release 5.2.2</a> diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index af1e41b5f..293e7d3cb 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -533,7 +533,7 @@ SurfaceGDI::SurfaceGDI() noexcept { } SurfaceGDI::SurfaceGDI(HDC hdcCompatible, int width, int height, SurfaceMode mode_, int logPixelsY_) noexcept { - hdc = ::CreateCompatibleDC(hdc); + hdc = ::CreateCompatibleDC(hdcCompatible); hdcOwned = true; bitmap = ::CreateCompatibleBitmap(hdcCompatible, width, height); bitmapOld = SelectBitmap(hdc, bitmap); |