comparison mac/dw.m @ 1093:25707e9f5ad1

Reverted the image scaling on buttons on Mac so it remains consistent on other platforms. Leaving the code in commented out for future use.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 29 Jun 2011 18:33:59 +0000
parents 4254c9b6d50d
children 9e1d6fa397be
comparison
equal deleted inserted replaced
1092:0fc7387abfd1 1093:25707e9f5ad1
3340 [button setTarget:button]; 3340 [button setTarget:button];
3341 [button setAction:@selector(buttonClicked:)]; 3341 [button setAction:@selector(buttonClicked:)];
3342 [button setTag:cid]; 3342 [button setTag:cid];
3343 [button setButtonType:NSMomentaryPushInButton]; 3343 [button setButtonType:NSMomentaryPushInButton];
3344 [button setBezelStyle:NSThickerSquareBezelStyle]; 3344 [button setBezelStyle:NSThickerSquareBezelStyle];
3345 [[button cell] setImageScaling:NSImageScaleProportionallyDown]; 3345 /* TODO: Reenable scaling in the future if it is possible on other platforms.
3346 [[button cell] setImageScaling:NSImageScaleProportionallyDown]; */
3346 if(DWDefaultFont) 3347 if(DWDefaultFont)
3347 { 3348 {
3348 [[button cell] setFont:DWDefaultFont]; 3349 [[button cell] setFont:DWDefaultFont];
3349 } 3350 }
3350 return button; 3351 return button;