aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-08-23 12:05:12 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-08-23 12:05:12 +1000
commita497f839581e28436042b1cccdbff6796163b0e0 (patch)
treeadfe9e4a90a4bce835b04adbb9b41da05ce2ed4d
parent030867ae0825ac889668b6c2d0be34883b5931e4 (diff)
downloadscintilla-mirror-a497f839581e28436042b1cccdbff6796163b0e0.tar.gz
Potential fix for bug [#1751]. Remove setting of current graphics context.
-rw-r--r--cocoa/ScintillaCocoa.mm8
1 files changed, 0 insertions, 8 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index e4117eb15..dd7afe120 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1421,13 +1421,7 @@ void ScintillaCocoa::StartDrag()
paintState = painting;
sw->InitPixMap(static_cast<int>(client.Width()), static_cast<int>(client.Height()), NULL, NULL);
paintingAllText = true;
- // Have to create a new context and make current as text drawing goes
- // to the current context, not a passed context.
CGContextRef gcsw = sw->GetContext();
- NSGraphicsContext *nsgc = [NSGraphicsContext graphicsContextWithGraphicsPort: gcsw
- flipped: YES];
- [NSGraphicsContext saveGraphicsState];
- [NSGraphicsContext setCurrentContext:nsgc];
CGContextTranslateCTM(gcsw, -client.left, -client.top);
Paint(sw, client);
paintState = notPainting;
@@ -1445,8 +1439,6 @@ void ScintillaCocoa::StartDrag()
// XXX TODO: overwrite any part of the image that is not part of the
// selection to make it transparent. right now we just use
// the full rectangle which may include non-selected text.
-
- [NSGraphicsContext restoreGraphicsState];
}
sw->Release();
delete sw;