aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-03-05 20:13:08 +1100
committerZufu Liu <unknown>2022-03-05 20:13:08 +1100
commitbaff47cdde385cc15b39ab93fca5f41db795d6bc (patch)
treee6e228fe16231e52c1bcdb55dc0a91ca793158d5 /win32
parentbbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (diff)
downloadscintilla-mirror-baff47cdde385cc15b39ab93fca5f41db795d6bc.tar.gz
Feature [feature-requests:#1432] Simplify setting surface modes with
EditModel::CurrentSurfaceMode.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 64c356b49..7bb8d43db 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -3527,7 +3527,7 @@ LRESULT PASCAL ScintillaWin::CTWndProc(
}
#endif
}
- surfaceWindow->SetMode(SurfaceMode(sciThis->ct.codePage, sciThis->BidirectionalR2L()));
+ surfaceWindow->SetMode(sciThis->CurrentSurfaceMode());
sciThis->ct.PaintCT(surfaceWindow.get());
#if defined(USE_D2D)
if (pCTRenderTarget)