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
commitc438e23d379029108dd0474e12156f7059cb2a4d (patch)
treeafd00dd54fdc57fec5eb9f125a9b71452238a16c
parentc52efd422132638f47669a3d810fc2cfd26358e3 (diff)
downloadscintilla-mirror-c438e23d379029108dd0474e12156f7059cb2a4d.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;