changeset 1071:991aa92a0642

Scale down images on bitmap buttons if they are too big on the Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 25 Jun 2011 02:34:05 +0000
parents 4293f5ba4330
children 5772fa5e24b3
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Sat Jun 25 02:19:12 2011 +0000
+++ b/mac/dw.m	Sat Jun 25 02:34:05 2011 +0000
@@ -3382,6 +3382,7 @@
     [button setTag:cid];
     [button setButtonType:NSMomentaryPushInButton];
     [button setBezelStyle:NSThickerSquareBezelStyle];
+    [[button cell] setImageScaling:NSImageScaleProportionallyDown];
     if(DWDefaultFont)
     {
         [[button cell] setFont:DWDefaultFont];