summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 3609af8..545e768 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -17,7 +17,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPhoto.c,v 1.90 2009/01/14 22:48:10 nijtmans Exp $
+ * RCS: @(#) $Id: tkImgPhoto.c,v 1.91 2009/01/19 14:00:06 das Exp $
*/
#include "tkImgPhoto.h"
@@ -2863,9 +2863,9 @@ Tk_PhotoPutBlock(
*/
if (!(masterPtr->flags & COMPLEX_ALPHA)) {
- register unsigned int x1;
+ register int x1;
- for (x1=x ; x<x+width ; x1++) {
+ for (x1=x ; x1<x+width ; x1++) {
register unsigned char newAlpha;
destLinePtr = masterPtr->pix32 + (y*masterPtr->width + x1)*4;