From 31faac9225c70fac8bcb687319e65a2e6ae358e4 Mon Sep 17 00:00:00 2001 From: Han Lin Yap Date: Mon, 20 Aug 2012 08:41:04 +0200 Subject: [PATCH] Fix issue #13, a bug on battery icon in retina display --- Battery Time Remaining/AppDelegate.m | 2 +- Battery Time Remaining/Battery Time Remaining-Info.plist | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Battery Time Remaining/AppDelegate.m b/Battery Time Remaining/AppDelegate.m index afc91bd..a5fd1b4 100644 --- a/Battery Time Remaining/AppDelegate.m +++ b/Battery Time Remaining/AppDelegate.m @@ -329,7 +329,7 @@ - (NSImage *)imageInvertColor:(NSImage *)_image [filter setDefaults]; [filter setValue:ciImage forKey:@"inputImage"]; CIImage *output = [filter valueForKey:@"outputImage"]; - [output drawAtPoint:NSZeroPoint fromRect:NSRectFromCGRect([output extent]) operation:NSCompositeSourceOver fraction:1.0]; + [output drawInRect:NSMakeRect(0, 0, [_image size].width, [_image size].height) fromRect:NSRectFromCGRect([output extent]) operation:NSCompositeSourceOver fraction:1.0]; [image unlockFocus]; diff --git a/Battery Time Remaining/Battery Time Remaining-Info.plist b/Battery Time Remaining/Battery Time Remaining-Info.plist index 210114b..50bfc79 100644 --- a/Battery Time Remaining/Battery Time Remaining-Info.plist +++ b/Battery Time Remaining/Battery Time Remaining-Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.5 + 1.5.0.1 CFBundleSignature ???? CFBundleURLTypes @@ -34,7 +34,7 @@ CFBundleVersion - 8 + 9 LSApplicationCategoryType public.app-category.utilities LSHasLocalizedDisplayName