Browse Source

minor fix

master
tth 6 months ago
parent
commit
4a52c16e40
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      funcs/displacement.c

+ 1
- 1
funcs/displacement.c View File

@ -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