diff options
author | redman <redman> | 1999-07-01 00:39:38 (GMT) |
---|---|---|
committer | redman <redman> | 1999-07-01 00:39:38 (GMT) |
commit | b25a3044a3cf9e9972515d62b1210ab9f48542de (patch) | |
tree | d6929409d78b4fb5eb9279cff651a5b7217fb203 /generic/tkImgPhoto.c | |
parent | dc805df6643379e019ae55d9932aea6a3d58c05c (diff) | |
download | tk-b25a3044a3cf9e9972515d62b1210ab9f48542de.zip tk-b25a3044a3cf9e9972515d62b1210ab9f48542de.tar.gz tk-b25a3044a3cf9e9972515d62b1210ab9f48542de.tar.bz2 |
Patches from Bug: 2068 2080 2269
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r-- | generic/tkImgPhoto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 38996ed..895f201 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -15,7 +15,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPhoto.c,v 1.8 1999/04/30 22:49:55 stanton Exp $ + * RCS: @(#) $Id: tkImgPhoto.c,v 1.9 1999/07/01 00:39:44 redman Exp $ */ #include "tkInt.h" @@ -802,6 +802,7 @@ ImgPhotoCmd(clientData, interp, argc, argv) block.offset[0] = 0; block.offset[1] = 1; block.offset[2] = 2; + block.offset[3] = 0; Tk_PhotoPutBlock((ClientData)masterPtr, &block, options.toX, options.toY, options.toX2 - options.toX, options.toY2 - options.toY); @@ -4173,5 +4174,6 @@ Tk_PhotoGetImage(handle, blockPtr) blockPtr->offset[0] = 0; blockPtr->offset[1] = 1; blockPtr->offset[2] = 2; + blockPtr->offset[3] = 0; return 1; } |