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. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') 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