Browse files

Fix issue #13, a bug on battery icon in retina display

  • Loading branch information...
1 parent f08f0d8 commit 31faac9225c70fac8bcb687319e65a2e6ae358e4 @codler codler committed Aug 20, 2012
View
2 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];
View
4 Battery Time Remaining/Battery Time Remaining-Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.5</string>
+ <string>1.5.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>8</string>
+ <string>9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSHasLocalizedDisplayName</key>

0 comments on commit 31faac9

Please sign in to comment.