PCX: display some information on bad PCX files

also, minor whitespace on <QF/image.h>
This commit is contained in:
Jeff Teunissen 2011-06-14 13:13:33 -04:00
parent cb86e09029
commit 85617586af
2 changed files with 3 additions and 5 deletions

View file

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

View file

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