changeset 1 | e55a17cdabd2 |
parent 0 | d84d25d6cdbb |
child 2 | 3d3dcc3116d5 |
1.1 --- a/GraphicsUtils.m Sat Mar 08 21:04:41 2008 -0800 1.2 +++ b/GraphicsUtils.m Thu Mar 20 09:05:58 2008 -0700 1.3 @@ -30,7 +30,7 @@ 1.4 - (NSImage*) my_shrunkToFitIn: (NSSize) maxSize 1.5 { 1.6 NSSize size = self.size; 1.7 - float scale = MIN( size.width/maxSize.width, size.height/maxSize.height ); 1.8 + float scale = MIN( maxSize.width/size.width, maxSize.height/size.height ); 1.9 if( scale >= 1.0 ) 1.10 return self; 1.11