summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authordas <das>2009-01-19 14:00:06 (GMT)
committerdas <das>2009-01-19 14:00:06 (GMT)
commit4856d406c2f6f07a24a5f5d11e7fc87e1b5ef253 (patch)
tree6e3291c97e3e0ba8622258498b4dff67afe42c03 /generic/tkImgPhoto.c
parent27dea7f90bb62c07880d067818d066545050809d (diff)
downloadtk-4856d406c2f6f07a24a5f5d11e7fc87e1b5ef253.zip
tk-4856d406c2f6f07a24a5f5d11e7fc87e1b5ef253.tar.gz
tk-4856d406c2f6f07a24a5f5d11e7fc87e1b5ef253.tar.bz2
fix typo that led to crashes
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;