diff options
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 09357eb39..e8723f318 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1100,7 +1100,7 @@ void ScintillaCocoa::CTPaint(void *gc, NSRect rc) { #pragma unused(rc) std::unique_ptr<Surface> surfaceWindow(Surface::Allocate(Technology::Default)); surfaceWindow->Init(gc, wMain.GetID()); - surfaceWindow->SetMode(SurfaceMode(ct.codePage, BidirectionalR2L())); + surfaceWindow->SetMode(CurrentSurfaceMode()); ct.PaintCT(surfaceWindow.get()); surfaceWindow->Release(); } @@ -1456,7 +1456,7 @@ void ScintillaCocoa::StartDrag() { // To get a bitmap of the text we're dragging, we just use Paint on a pixmap surface. SurfaceImpl si; - si.SetMode(SurfaceMode(CodePage(), BidirectionalR2L())); + si.SetMode(CurrentSurfaceMode()); std::unique_ptr<SurfaceImpl> sw = si.AllocatePixMapImplementation(static_cast<int>(client.Width()), static_cast<int>(client.Height())); const bool lastHideSelection = view.hideSelection; |