little tweak

This commit is contained in:
tTh 2024-09-29 20:14:13 +02:00
parent 91440e7ea5
commit 26e82619fb

View File

@ -65,7 +65,7 @@ for (yd=0; yd<pdst->height; yd++) {
fimg_get_rgb(pshift, xd, yd, disp); fimg_get_rgb(pshift, xd, yd, disp);
xs = xd + ((disp[0]/dltr*MULT) - OFFS); xs = xd + ((disp[0]/dltr*MULT) - OFFS);
ys = yd + ((disp[2]/dltb*MULT) - OFFS); ys = yd + ((disp[1]/dltb*MULT) - OFFS);
if ( xs<0 || xs>psrc->width || if ( xs<0 || xs>psrc->width ||
ys<0 || ys>psrc->height ) { ys<0 || ys>psrc->height ) {