Skip to content

Commit

Permalink
v1.0.9 - Fixed 3x resizing to 1x issue on retina Macs
Browse files Browse the repository at this point in the history
The 1x did not resize to 1x but rather to 2x. Now fixed.
  • Loading branch information
terwanerik committed Apr 30, 2016
1 parent 7dfa2dd commit 315b845
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file modified Retini.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions Retini/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<<<<<<< HEAD
<string>1.0.9</string>
=======
<string>1.0.8</string>
>>>>>>> 7dfa2ddc8d939ef44733a4eb1abea3f2e711bc9b
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 4 additions & 0 deletions Retini/ResizeModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ - (void)resize3x:(NSString *)fileName
NSImage *newImg2x = [self imageResize:[original copy] newSize:NSMakeSize(width, height)];

if([self saveImage:newImg2x toPath:[fileName stringByReplacingOccurrencesOfString:@"@3x" withString:@"@2x"]]){
<<<<<<< HEAD
NSImage *newImg = [self imageResize:[original copy] newSize:NSMakeSize(original.size.width / screenScale, original.size.height / screenScale)];
=======
NSImage *newImg = [self imageResize:[original copy] newSize:NSMakeSize(original.size.width, original.size.height)];
>>>>>>> 7dfa2ddc8d939ef44733a4eb1abea3f2e711bc9b
[self saveImage:newImg toPath:[fileName stringByReplacingOccurrencesOfString:@"@3x" withString:@""]];
}

Expand Down

0 comments on commit 315b845

Please sign in to comment.