From 0109c81576ccb51ab5c4a7f99467f1c619267e34 Mon Sep 17 00:00:00 2001 From: rutdaun Date: Sun, 23 Jul 2006 20:10:37 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/q3cellshading/code/trunk@22 db09e94b-7117-0410-a7e6-85ae5ff6e0e9 --- code/renderer/tr_image.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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