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 /gtk | |
| 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 'gtk')
| -rwxr-xr-x | gtk/ScintillaGTK.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 50e46ecc8..312ad1f94 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2980,8 +2980,7 @@ gboolean ScintillaGTK::DrawCT(GtkWidget *widget, cairo_t *cr, CallTip *ctip) { try { std::unique_ptr<Surface> surfaceWindow(Surface::Allocate(SC_TECHNOLOGY_DEFAULT)); surfaceWindow->Init(cr, widget); - surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == ctip->codePage); - surfaceWindow->SetDBCSMode(ctip->codePage); + surfaceWindow->SetMode(SurfaceMode(ctip->codePage, false)); ctip->PaintCT(surfaceWindow.get()); surfaceWindow->Release(); } catch (...) { @@ -2997,8 +2996,7 @@ gboolean ScintillaGTK::ExposeCT(GtkWidget *widget, GdkEventExpose * /*ose*/, Cal std::unique_ptr<Surface> surfaceWindow(Surface::Allocate(SC_TECHNOLOGY_DEFAULT)); cairo_t *cr = gdk_cairo_create(WindowFromWidget(widget)); surfaceWindow->Init(cr, widget); - surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == ctip->codePage); - surfaceWindow->SetDBCSMode(ctip->codePage); + surfaceWindow->SetMode(SurfaceMode(ctip->codePage, false)); ctip->PaintCT(surfaceWindow.get()); surfaceWindow->Release(); cairo_destroy(cr); |
