Fixed crashing typo. Thanks Vittorio! release-1.2.9
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Nov 2009 06:59:38 +0000
changeset 243f92c6b8019b2
parent 242 f2bb16f1be12
child 244 d245428c1988
Fixed crashing typo. Thanks Vittorio!
IMG_ImageIO.c
IMG_UIImage.m
     1.1 --- a/IMG_ImageIO.c	Tue Nov 10 08:45:08 2009 +0000
     1.2 +++ b/IMG_ImageIO.c	Wed Nov 11 06:59:38 2009 +0000
     1.3 @@ -298,7 +298,7 @@
     1.4  #else
     1.5  				Uint8 A = p[0];
     1.6  				if (A) {
     1.7 -					for (j = 1; i < 4; ++j) {
     1.8 +					for (j = 1; j < 4; ++j) {
     1.9  						p[j] = (p[j] * 255) / A;
    1.10  					}
    1.11  				}
     2.1 --- a/IMG_UIImage.m	Tue Nov 10 08:45:08 2009 +0000
     2.2 +++ b/IMG_UIImage.m	Wed Nov 11 06:59:38 2009 +0000
     2.3 @@ -90,7 +90,7 @@
     2.4  #else
     2.5  				Uint8 A = p[0];
     2.6  				if (A) {
     2.7 -					for (j = 1; i < 4; ++j) {
     2.8 +					for (j = 1; j < 4; ++j) {
     2.9  						p[j] = (p[j] * 255) / A;
    2.10  					}
    2.11  				}