diff --git a/experiment/movepixels.c b/experiment/movepixels.c index 57471728..342fe697 100644 --- a/experiment/movepixels.c +++ b/experiment/movepixels.c @@ -65,7 +65,7 @@ for (yd=0; ydheight; yd++) { fimg_get_rgb(pshift, xd, yd, disp); 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 || ys<0 || ys>psrc->height ) {