From 794c599d481e46dbf9a5251a57fafb528b3fff2d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 Mar 2021 12:56:26 +1100 Subject: 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. --- qt/ScintillaEditBase/ScintillaQt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt/ScintillaEditBase/ScintillaQt.cpp') diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp index 06314187e..bb6dad410 100644 --- a/qt/ScintillaEditBase/ScintillaQt.cpp +++ b/qt/ScintillaEditBase/ScintillaQt.cpp @@ -691,8 +691,7 @@ public: if (pct->inCallTipMode) { std::unique_ptr surfaceWindow = Surface::Allocate(0); surfaceWindow->Init(this); - surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == pct->codePage); - surfaceWindow->SetDBCSMode(pct->codePage); + surfaceWindow->SetMode(SurfaceMode(pct->codePage, false)); pct->PaintCT(surfaceWindow.get()); } } -- cgit v1.2.3