This commit is contained in:
Yay295 2022-10-04 08:35:40 -05:00
parent e0776724b1
commit d4b4e2ef12

View File

@ -967,10 +967,9 @@ ImagingTransformAffine(
ImagingSectionEnter(&cookie); ImagingSectionEnter(&cookie);
for (y = y0; y < y1; y++) { for (y = y0; y < y1; y++) {
UINT8 *out; UINT8 *out = (UINT8 *)imOut->image[y];
xx = xo; xx = xo;
yy = yo; yy = yo;
out = (UINT8 *)imOut->image[y];
if (fill && x1 > x0) { if (fill && x1 > x0) {
memset(out + x0 * pixelsize, 0, (x1 - x0) * pixelsize); memset(out + x0 * pixelsize, 0, (x1 - x0) * pixelsize);
} }
@ -979,8 +978,9 @@ ImagingTransformAffine(
if (xin >= 0 && xin < xsize) { if (xin >= 0 && xin < xsize) {
yin = COORD(yy); yin = COORD(yy);
if (yin >= 0 && yin < ysize) { if (yin >= 0 && yin < ysize) {
UINT8T *in = (UINT8 *)imIn->image[yin];
for (b = 0; b < pixelsize; b++) { for (b = 0; b < pixelsize; b++) {
out[x * pixelsize + b] = (UINT8 *)imIn->image[yin][xin * pixelsize + b]; out[x * pixelsize + b] = in[xin * pixelsize + b];
} }
} }
} }