Changeset 6420


Ignore:
Timestamp:
Jul 1, 2016, 1:36:14 PM (8 years ago)
Author:
ldelgass
Message:

Merge r6419 from trunk (fix for building squeezer against Tk 8.5)

Location:
branches/blt4_trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4_trunk

    • Property svn:mergeinfo changed
      /trunkmerged: 6419
  • branches/blt4_trunk/gui/src/RpSqueezer.c

    r6136 r6420  
    199199        }
    200200    }
    201     Tk_PhotoSetSize(NULL, destPhoto, destw, srch);
    202     Tk_PhotoPutBlock(NULL, destPhoto, &destBlock, 0, 0,
     201#if TK_MAJOR_VERSION > 8 || (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION > 4)
     202    if (Tk_PhotoSetSize(interp, destPhoto, destw, srch) != TCL_OK) {
     203        ckfree((char*)destBlock.pixelPtr);
     204        return TCL_ERROR;
     205    }
     206    if (Tk_PhotoPutBlock(interp, destPhoto, &destBlock, 0, 0,
     207                         destBlock.width, destBlock.height, TK_PHOTO_COMPOSITE_SET) != TCL_OK) {
     208        ckfree((char*)destBlock.pixelPtr);
     209        return TCL_ERROR;
     210    }
     211#else
     212    Tk_PhotoSetSize(destPhoto, destw, srch);
     213    Tk_PhotoPutBlock(destPhoto, &destBlock, 0, 0,
    203214        destBlock.width, destBlock.height, TK_PHOTO_COMPOSITE_SET);
    204 
     215#endif
    205216    ckfree((char*)destBlock.pixelPtr);
    206217    return TCL_OK;
Note: See TracChangeset for help on using the changeset viewer.