aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-04-10 08:56:04 +1000
committerNeil <nyamatongwe@gmail.com>2022-04-10 08:56:04 +1000
commitf85a8baec6f401d481341ead87f39d9fe9d284ec (patch)
tree6e267801b2d27a223856512e403a0c131875ccb3 /win32/PlatWin.cxx
parent8a44ef9acfda0ec46a541f0be56333eb5cf6b0ff (diff)
downloadscintilla-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.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
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);