Skip to content

Commit

Permalink
[Sprite Sheet Exporter] Fixed an issue where the placeholder image wo…
Browse files Browse the repository at this point in the history
…uld be flipped; fixes #168
  • Loading branch information
mattrajca committed Mar 29, 2012
1 parent 7ee9c6a commit 5282f8e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ - (void)drawRect:(NSRect)dirtyRect
NSRectFill(iconRect);

NSImage *icon = [NSImage imageNamed:@"Pixen128"];
[icon setFlipped:YES];
[icon drawInRect:iconRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f];
[icon drawInRect:iconRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0f respectFlipped:YES hints:nil];
}

- (NSPoint)topLeftPositionWithOldSize:(NSSize)size newSize:(NSSize)newSize
Expand Down

0 comments on commit 5282f8e

Please sign in to comment.