mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
PCX: display some information on bad PCX files
also, minor whitespace on <QF/image.h>
This commit is contained in:
parent
cb86e09029
commit
85617586af
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue