comparison mac/dw.m @ 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 e71ab68198ce
comparison
equal deleted inserted replaced
1775:ae8dedac4358 1776:c02f23d24507
1606 } 1606 }
1607 imageFrame.origin.x += 3; 1607 imageFrame.origin.x += 3;
1608 imageFrame.size = imageSize; 1608 imageFrame.size = imageSize;
1609 imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); 1609 imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2);
1610 1610
1611 [image drawAtPoint:imageFrame.origin fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0]; 1611 [image drawInRect:imageFrame fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0 respectFlipped:YES hints:nil];
1612 } 1612 }
1613 [super drawWithFrame:cellFrame inView:controlView]; 1613 [super drawWithFrame:cellFrame inView:controlView];
1614 } 1614 }
1615 -(NSSize)cellSize 1615 -(NSSize)cellSize
1616 { 1616 {