changeset 1776:c02f23d24507

Switched to using drawInRect: instead of drawAtPoint: on Mac since drawAtPoint did not respect the fliped flag, so icons were upside down.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 16 Jul 2012 22:32:00 +0000
parents ae8dedac4358
children 0cdfb0c3f4ca
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Mon Jul 16 20:16:19 2012 +0000
+++ b/mac/dw.m	Mon Jul 16 22:32:00 2012 +0000
@@ -1608,7 +1608,7 @@
         imageFrame.size = imageSize;
         imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2);
         
-        [image drawAtPoint:imageFrame.origin fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
+        [image drawInRect:imageFrame fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0 respectFlipped:YES hints:nil];
     }
     [super drawWithFrame:cellFrame inView:controlView];
 }