Changeset 6420
- Timestamp:
- Jul 1, 2016, 1:36:14 PM (8 years ago)
- Location:
- branches/blt4_trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4_trunk
-
branches/blt4_trunk/gui/src/RpSqueezer.c
r6136 r6420 199 199 } 200 200 } 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, 203 214 destBlock.width, destBlock.height, TK_PHOTO_COMPOSITE_SET); 204 215 #endif 205 216 ckfree((char*)destBlock.pixelPtr); 206 217 return TCL_OK;
Note: See TracChangeset
for help on using the changeset viewer.