]> granicus.if.org Git - transmission/commitdiff
silence a deprecation warning
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 29 Oct 2012 22:16:42 +0000 (22:16 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 29 Oct 2012 22:16:42 +0000 (22:16 +0000)
macosx/DragOverlayView.m

index 85ff86472a9d73d1fb7651f4a6727183629963d8..3821d967bdc5b234d441cdc6bad7a49f9f48dd5e 100644 (file)
     {
         const NSRect frame = [self frame];
         const NSSize imageSize = [fBadge size];
-        [fBadge compositeToPoint: NSMakePoint((NSWidth(frame) - imageSize.width) * 0.5,
-                    (NSHeight(frame) - imageSize.height) * 0.5) operation: NSCompositeSourceOver];
+        [fBadge drawAtPoint: NSMakePoint((NSWidth(frame) - imageSize.width) * 0.5, (NSHeight(frame) - imageSize.height) * 0.5) fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
     }
 }