From 5360ef0097ec7c0cbfd815a599b5298fc6fbcaad Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 19 Nov 2004 03:09:38 +0000 Subject: [PATCH] I got that wrong. Sorry. top-down-rle tgas work a bit better now. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@471 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/image.c | 66 +++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/engine/client/image.c b/engine/client/image.c index 2b4b5bfa1..161eeedfd 100644 --- a/engine/client/image.c +++ b/engine/client/image.c @@ -141,7 +141,7 @@ qbyte *ReadTargaFile(qbyte *buf, int length, int *width, int *height, int asgrey #define NTSC_GREEN 0.587 #define NTSC_BLUE 0.114 - char *data; + unsigned char *data; qboolean flipped; @@ -201,7 +201,7 @@ qbyte *ReadTargaFile(qbyte *buf, int length, int *width, int *height, int asgrey pixbuf = targa_rgba + ((rows-1)-row)*columns*(asgrey?1:4); for(column=0; column