diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-04 11:08:56 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-04 11:08:56 +1000 |
commit | f727549c5e31d4ff7e4c730335cda58ac0b58a42 (patch) | |
tree | ff1515f79e6a4000060ed765aad2d40b18dd0ecb | |
parent | ee5c0b3cac528dc6901a6bb62a3d321e488dcf14 (diff) | |
download | scintilla-mirror-f727549c5e31d4ff7e4c730335cda58ac0b58a42.tar.gz |
Bug [#1533]. [NSImage dissolveToPoint:fromRect:fraction:] is deprecated.
From Chinh Nguyen.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
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; |