summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-10-23 09:18:36 +0000
committerritsuka <[email protected]>2014-10-23 09:18:36 +0000
commitc394aa15a09d2f2a4cd39c74820cba9f22e7f577 (patch)
tree950f80366540d87968a2b83b1b5d359039c36393 /macosx
parent95089f01515fc339a3cd6254c93e620bab701d37 (diff)
MacGui: workaround for a bug in [[NSApplication sharedApplication] applicationIconImage] that happens with 1024x1024 icns on Snow Leopard, the icon in the dock was displayed a bit small.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6459 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index f1b221ab5..b6fc0e38b 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -82,9 +82,15 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
presetManager = [[HBPresetsManager alloc] initWithURL:presetsURL];
_selectedPreset = presetManager.defaultPreset;
+ // Workaround to avoid a bug in Snow Leopard
+ // we can switch back to [[NSApplication sharedApplication] applicationIconImage]
+ // when we won't support it anymore.
+ NSImage *appIcon = [NSImage imageNamed:@"HandBrake"];
+ [appIcon setSize:NSMakeSize(1024, 1024)];
+
// Load the dockTile and instiante initial text fields
dockTile = [[HBDockTile alloc] initWithDockTile:[[NSApplication sharedApplication] dockTile]
- image:[[NSApplication sharedApplication] applicationIconImage]];
+ image:appIcon];
[dockTile updateDockIcon:-1.0 withETA:@""];