projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001125-3-src
[rocksndiamonds.git]
/
src
/
image.c
diff --git
a/src/image.c
b/src/image.c
index 09a75fcee078a7eb6628042246a6acd67ecef6be..5331a8865c956ebdee5229c3326e2316bed4c2f1 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-11,6
+11,8
@@
* image.c *
***********************************************************/
* image.c *
***********************************************************/
+#ifndef TARGET_SDL
+
#include "image.h"
#include "pcx.h"
#include "misc.h"
#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)
/* 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);
#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;
*pixmap = ximageinfo->pixmap;
*pixmap_mask = ximageinfo->pixmap_mask;
- return
(PCX_Success)
;
+ return
PCX_Success
;
}
#endif /* !MSDOS */
}
#endif /* !MSDOS */
+#endif /* !TARGET_SDL */