diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-22 12:56:26 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-22 12:56:26 +1100 |
| commit | 794c599d481e46dbf9a5251a57fafb528b3fff2d (patch) | |
| tree | 0d8b286d6139c23ff6fd8f578c626d7295838910 /win32/ScintillaWin.cxx | |
| parent | 240add387904f2630030a8b2665cadb8babf6153 (diff) | |
| download | scintilla-mirror-794c599d481e46dbf9a5251a57fafb528b3fff2d.tar.gz | |
Replace multiple mode setting calls on Surface with SetMode as this is
extensible.
For CallTip, GTK and Qt hardcode BidiR2L to false as they don't support
bidirectional, its the same as current, and the BidiR2L state on EditModel isn't
easily accessible.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 44d08af71..4a8d1c5e9 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -3492,9 +3492,7 @@ LRESULT PASCAL ScintillaWin::CTWndProc( } #endif } - surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == sciThis->ct.codePage); - surfaceWindow->SetDBCSMode(sciThis->ct.codePage); - surfaceWindow->SetBidiR2L(sciThis->BidirectionalR2L()); + surfaceWindow->SetMode(SurfaceMode(sciThis->ct.codePage, sciThis->BidirectionalR2L())); sciThis->ct.PaintCT(surfaceWindow.get()); #if defined(USE_D2D) if (pCTRenderTarget) |
