Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
corrected small flaw where gear image is drawn in an incorrect positi…
…on in rare cases; thanks to Peter Hosey for pointing out the cause

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
Simone Manganelli authored and rentzsch committed Apr 22, 2009
1 parent 181c096 commit 70055dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Plugin/Plugin.m
Expand Up @@ -636,6 +636,11 @@ - (void) _drawBadgeWithPressed: (BOOL) pressed
// add the gear for the contextual menu, but only if the view is
// greater than a certain size

// de-apply the scaling factor first, otherwise drawing will be off
NSAffineTransform *xformTwo = [NSAffineTransform transform];
[xformTwo scaleBy: 1/scaleFactor];
[xformTwo concat];

if ((viewWidth > 32) && (viewHeight > 32)) {
float margin = 5.0;
NSImage *gearImage = [NSImage imageNamed:@"NSActionTemplate"];
Expand Down

0 comments on commit 70055dd

Please sign in to comment.