diff options
author | scotty <scottypitcher@gmail.com> | 2017-11-30 12:12:53 (GMT) |
---|---|---|
committer | scotty <scottypitcher@gmail.com> | 2017-11-30 12:12:53 (GMT) |
commit | 00e846ff60b999cca1f3cd34d6d00e1879aae0c0 (patch) | |
tree | 0f4211236b80eba0589b0201517b20f23091d930 /generic | |
parent | 3e088af23505f688b1de446a4020431c14c2b280 (diff) | |
download | tk-00e846ff60b999cca1f3cd34d6d00e1879aae0c0.zip tk-00e846ff60b999cca1f3cd34d6d00e1879aae0c0.tar.gz tk-00e846ff60b999cca1f3cd34d6d00e1879aae0c0.tar.bz2 |
Wrote test cases for "canvas image"; Fixed bug in the call to Tk_PhotoPutZoomedBlock()
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCanvas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index e7d6f81..de4b4d4 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -2799,7 +2799,7 @@ DrawCanvas( * If either zoom or subsample are not 1, we use the zoom function. */ if (subsample != 1 || zoom != 1) { - if ((result = Tk_PhotoPutZoomedBlock(interp, photohandle, &blockPtr, 0, 0, cWidth * zoom / subsample+1, cHeight * zoom / subsample+1, zoom, zoom, subsample, subsample, TK_PHOTO_COMPOSITE_SET)) != TCL_OK) { + if ((result = Tk_PhotoPutZoomedBlock(interp, photohandle, &blockPtr, 0, 0, cWidth * zoom / subsample, cHeight * zoom / subsample, zoom, zoom, subsample, subsample, TK_PHOTO_COMPOSITE_SET)) != TCL_OK) { goto done; } } else { |