diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c index 011a606..e8f116d 100644 --- a/code/renderer/tr_image.c +++ b/code/renderer/tr_image.c @@ -1133,8 +1133,13 @@ void kuwahara(int columns, int rows, byte *targa_rgba) byte getImageR(byte *targa_rgba, int x, int y, int columns, int rows) { byte *pixbuf; + + x*=((x<0)?-1:1); + y*=((y<0)?-1:1); + pixbuf = targa_rgba + y*columns*4; + if(columns