Browse Source

minor fix

master
tth 1 year ago
parent
commit
4a52c16e40
  1. 2
      funcs/displacement.c

2
funcs/displacement.c

@ -59,7 +59,7 @@ for (y=0; y<psrc->height; y++) { @@ -59,7 +59,7 @@ for (y=0; y<psrc->height; y++) {
fimg_get_rgb(psrc, x, y, rgb);
dispx = (float)x + (rgb[1]/dltg * 20.0);
dispy = (float)y + (rgb[2]/dltb * 10.0);
dispy = (float)y + (rgb[2]/dltb * 20.0);
dstx = (int)roundf(dispx - 10.0);
dsty = (int)roundf(dispy - 10.0);

Loading…
Cancel
Save