aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
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 /cocoa
parentbbfeaf78ee634c24bd7fcb1c7faff207473e71e4 (diff)
downloadscintilla-mirror-baff47cdde385cc15b39ab93fca5f41db795d6bc.tar.gz
Feature [feature-requests:#1432] Simplify setting surface modes with
EditModel::CurrentSurfaceMode.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.mm4
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;