[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52882] trunk/blender/intern/ghost/intern/ GHOST_WindowCocoa.mm: Fix OS X warning on startup about using deprecated function, when building against 10.8 SDK.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Dec 11 15:39:26 CET 2012


Revision: 52882
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52882
Author:   blendix
Date:     2012-12-11 14:39:26 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
Fix OS X warning on startup about using deprecated function, when building against 10.8 SDK.

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm	2012-12-11 14:30:12 UTC (rev 52881)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm	2012-12-11 14:39:26 UTC (rev 52882)
@@ -1221,7 +1221,7 @@
 		[dockIcon lockFocus];
 		NSRect progressBox = {{4, 4}, {120, 16}};
 
-		[[NSImage imageNamed:@"NSApplicationIcon"] dissolveToPoint:NSZeroPoint fraction:1.0];
+		[[NSImage imageNamed:@"NSApplicationIcon"] drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
 
 		// Track & Outline
 		[[NSColor blackColor] setFill];
@@ -1260,7 +1260,7 @@
 	
 	NSImage* dockIcon = [[NSImage alloc] initWithSize:NSMakeSize(128,128)];
 	[dockIcon lockFocus];
-	[[NSImage imageNamed:@"NSApplicationIcon"] dissolveToPoint:NSZeroPoint fraction:1.0];
+	[[NSImage imageNamed:@"NSApplicationIcon"] drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
 	[dockIcon unlockFocus];
 	[NSApp setApplicationIconImage:dockIcon];
 	[dockIcon release];




More information about the Bf-blender-cvs mailing list