From: ritsuka Date: Thu, 23 Oct 2014 09:18:36 +0000 (+0000) Subject: MacGui: workaround for a bug in [[NSApplication sharedApplication] applicationIconIma... X-Git-Tag: 0.10.0~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c394aa15a09d2f2a4cd39c74820cba9f22e7f577;p=handbrake 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 --- 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:@""];