diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-11 18:39:26 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-11 18:39:26 +0400 |
commit | fd3068281c28a3e801da3fb2f2bcbf06b2e3be24 (patch) | |
tree | ecd6af40d8cc024b7fcd59f3e73a155be0de8003 /intern | |
parent | f6c14d430f62cc816fe6fdeb2d6b071df845e3e1 (diff) |
Fix OS X warning on startup about using deprecated function, when building against 10.8 SDK.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 7a5bb8ab604..a483c030b31 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -1221,7 +1221,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setProgressBar(float progress) [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 @@ GHOST_TSuccess GHOST_WindowCocoa::endProgressBar() 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]; |