diff mac/dw.m @ 1074:53fc692279fc

Bitmap widgets shouldn't scale down images when the widget is smaller than the image on Mac. It should clip the image to be consistent with the other platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 25 Jun 2011 03:16:40 +0000
parents 991aa92a0642
children 3d117071a50b
line wrap: on
line diff
--- a/mac/dw.m	Sat Jun 25 03:15:29 2011 +0000
+++ b/mac/dw.m	Sat Jun 25 03:16:40 2011 +0000
@@ -6086,6 +6086,7 @@
     DW_MUTEX_LOCK;
     NSImageView *bitmap = [[NSImageView alloc] init];
     [bitmap setImageFrameStyle:NSImageFrameNone];
+    [bitmap setImageScaling:NSScaleNone];
     [bitmap setEditable:NO];
     [bitmap setTag:cid];
     DW_MUTEX_UNLOCK;