comparison 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
comparison
equal deleted inserted replaced
1073:659b3c6a8959 1074:53fc692279fc
6084 { 6084 {
6085 int _locked_by_me = FALSE; 6085 int _locked_by_me = FALSE;
6086 DW_MUTEX_LOCK; 6086 DW_MUTEX_LOCK;
6087 NSImageView *bitmap = [[NSImageView alloc] init]; 6087 NSImageView *bitmap = [[NSImageView alloc] init];
6088 [bitmap setImageFrameStyle:NSImageFrameNone]; 6088 [bitmap setImageFrameStyle:NSImageFrameNone];
6089 [bitmap setImageScaling:NSScaleNone];
6089 [bitmap setEditable:NO]; 6090 [bitmap setEditable:NO];
6090 [bitmap setTag:cid]; 6091 [bitmap setTag:cid];
6091 DW_MUTEX_UNLOCK; 6092 DW_MUTEX_UNLOCK;
6092 return bitmap; 6093 return bitmap;
6093 } 6094 }