diff options
author | Neil <nyamatongwe@gmail.com> | 2022-04-10 08:56:04 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-04-10 08:56:04 +1000 |
commit | f85a8baec6f401d481341ead87f39d9fe9d284ec (patch) | |
tree | 6e267801b2d27a223856512e403a0c131875ccb3 | |
parent | 8a44ef9acfda0ec46a541f0be56333eb5cf6b0ff (diff) | |
download | scintilla-mirror-f85a8baec6f401d481341ead87f39d9fe9d284ec.tar.gz |
Feature [feature-requests:#1435] Fix problem with horizontally inverted glyphs
with buffered drawing and WS_EX_LAYOUTRTL set on Win32 GDI.
-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); |