X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fimage.c;h=a3f925702580d147918aeece470abd27d01a849f;hb=6504e94ad5344b188eae829e8136b804437e70bf;hp=09a75fcee078a7eb6628042246a6acd67ecef6be;hpb=0918c3eb2f6219a8cc72aa85bd9c4889788dd474;p=rocksndiamonds.git diff --git a/src/image.c b/src/image.c index 09a75fce..a3f92570 100644 --- a/src/image.c +++ b/src/image.c @@ -11,6 +11,8 @@ * image.c * ***********************************************************/ +#ifndef USE_SDL_LIBRARY + #include "image.h" #include "pcx.h" #include "misc.h" @@ -514,7 +516,7 @@ int Read_PCX_to_Pixmap(Display *display, Window window, GC gc, char *filename, /* 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); @@ -548,7 +550,8 @@ int Read_PCX_to_Pixmap(Display *display, Window window, GC gc, char *filename, *pixmap = ximageinfo->pixmap; *pixmap_mask = ximageinfo->pixmap_mask; - return(PCX_Success); + return PCX_Success; } +#endif /* !USE_SDL_LIBRARY */ #endif /* !MSDOS */