* image.c *
***********************************************************/
+#ifndef TARGET_SDL
+
#include "image.h"
#include "pcx.h"
#include "misc.h"
/* read the graphic file in PCX format to image structure */
if ((image = Read_PCX_to_Image(filename)) == NULL)
- return PCX_FileInvalid;
+ return errno_pcx;
#if DEBUG_TIMING
printf("%s:\n", filename);
*pixmap = ximageinfo->pixmap;
*pixmap_mask = ximageinfo->pixmap_mask;
- return(PCX_Success);
+ return PCX_Success;
}
#endif /* !MSDOS */
+#endif /* !TARGET_SDL */