aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-10-04 11:08:56 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-10-04 11:08:56 +1000
commitf727549c5e31d4ff7e4c730335cda58ac0b58a42 (patch)
treeff1515f79e6a4000060ed765aad2d40b18dd0ecb
parentee5c0b3cac528dc6901a6bb62a3d321e488dcf14 (diff)
downloadscintilla-mirror-f727549c5e31d4ff7e4c730335cda58ac0b58a42.tar.gz
Bug [#1533]. [NSImage dissolveToPoint:fromRect:fraction:] is deprecated.
From Chinh Nguyen.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index beae1cace..4fb927188 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1279,7 +1279,7 @@ void ScintillaCocoa::StartDrag()
NSImage* dragImage = [[[NSImage alloc] initWithSize: selectionRectangle.size] autorelease];
[dragImage setBackgroundColor: [NSColor clearColor]];
[dragImage lockFocus];
- [image dissolveToPoint: NSMakePoint(0.0, 0.0) fraction: 0.5];
+ [image drawAtPoint: NSZeroPoint fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 0.5];
[dragImage unlockFocus];
NSPoint startPoint;