# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1342477920 0 # Node ID c02f23d245073a5478e88a492589cb167988ab51 # Parent ae8dedac43585e5aabcd393940c95f2ae0fa4b57 Switched to using drawInRect: instead of drawAtPoint: on Mac since drawAtPoint did not respect the fliped flag, so icons were upside down. diff -r ae8dedac4358 -r c02f23d24507 mac/dw.m --- 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]; }