From f85a8baec6f401d481341ead87f39d9fe9d284ec Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 10 Apr 2022 08:56:04 +1000 Subject: Feature [feature-requests:#1435] Fix problem with horizontally inverted glyphs with buffered drawing and WS_EX_LAYOUTRTL set on Win32 GDI. --- doc/ScintillaHistory.html | 4 ++++ win32/PlatWin.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 @@ Bug #2196, Bug #2312. +
  • + Fix problem with horizontally inverted glyphs with buffered drawing and WS_EX_LAYOUTRTL set on Win32 GDI. + Feature #1435. +
  • Release 5.2.2 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); -- cgit v1.2.3