From 85617586af80e9da6f5830f40ff42d3e915ee365 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Tue, 14 Jun 2011 13:13:33 -0400 Subject: [PATCH] PCX: display some information on bad PCX files also, minor whitespace on --- include/QF/image.h | 5 +---- libs/image/pcx.c | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/QF/image.h b/include/QF/image.h index deb3c5b7e..dfaa96eb8 100644 --- a/include/QF/image.h +++ b/include/QF/image.h @@ -25,10 +25,7 @@ Free Software Foundation, Inc. 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA - - $Id$ */ - #ifndef __QF_image_h #define __QF_image_h @@ -52,4 +49,4 @@ typedef struct tex_s { tex_t *LoadImage (const char *imageFile); -#endif//__QF_image_h +#endif //__QF_image_h diff --git a/libs/image/pcx.c b/libs/image/pcx.c index 392ea8650..a29306223 100644 --- a/libs/image/pcx.c +++ b/libs/image/pcx.c @@ -80,7 +80,8 @@ LoadPCX (QFile *f, qboolean convert, byte *pal) || pcx->version != 5 || pcx->encoding != 1 || pcx->bits_per_pixel != 8) { - Sys_Printf ("Bad pcx file\n"); + Sys_Printf ("Bad pcx file: %x %d %d %d\n", + pcx->manufacturer, pcx->version, pcx->encoding, pcx->bits_per_pixel); return 0; }