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)

Patch to make tk @8.6.6_0+quartz build on Non-Retina Snow Leopard

  • macosx/tkMacOSXXStubs.c

    old new  
    898898     */
    899899    int scalefactor = 1;
    900900    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
     905win backingScaleFactor
     906#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1070
     907]floatValue
     908#endif
     909] == 2.0) ? 2 : 1;
    902910    }
    903911    int scaled_height = height * scalefactor;
    904912    int scaled_width = width * scalefactor;