Ticket #52090: smaller_patch-macosx-tkMacOSXXStubs_non-Retina.diff
File smaller_patch-macosx-tkMacOSXXStubs_non-Retina.diff, 599 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago) |
---|
-
macosx/tkMacOSXXStubs.c
old new 898 898 */ 899 899 int scalefactor = 1; 900 900 if (win && [win respondsToSelector:@selector(backingScaleFactor)]) { 901 scalefactor = ([win backingScaleFactor] == 2.0) ? 2 : 1; 901 scalefactor = ([ 902 #if __MAC_OS_X_VERSION_MAX_ALLOWED < 1070 903 [ 904 #endif 905 win backingScaleFactor 906 #if __MAC_OS_X_VERSION_MAX_ALLOWED < 1070 907 ]floatValue 908 #endif 909 ] == 2.0) ? 2 : 1; 902 910 } 903 911 int scaled_height = height * scalefactor; 904 912 int scaled_width = width * scalefactor;