rnd-20001125-3-src
[rocksndiamonds.git] / src / image.h
index 50335eea15a5eaff0117bbe4a4f0f217c49ad3b8..18f3ec0d609718c15d2b5bb252c506291c9ad88b 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef IMAGE_H
 #define IMAGE_H
 
+#ifndef TARGET_SDL
+
 #include "main.h"
 
 #define MAX_COLORS     256     /* maximal number of colors for each image */
@@ -23,7 +25,6 @@ typedef unsigned short Intensity;     /* RGB intensity for X11 */
 typedef struct
 {
   Display  *display;           /* destination display             */
-  int       screen;            /* destination screen              */
   int       depth;             /* depth of destination drawable   */
   Pixel     index[MAX_COLORS]; /* array of pixel values           */
   int       no;                        /* number of pixels in the array   */
@@ -50,18 +51,11 @@ typedef struct
   byte         *data;          /* image data                          */
 } Image;
 
-#define PCX_Success             0
-#define PCX_OpenFailed         -1
-#define PCX_ReadFailed         -2
-#define        PCX_FileInvalid         -3
-#define PCX_NoMemory           -4
-#define PCX_ColorFailed                -5
-
-int Read_PCX_to_Pixmaps(Display *, Window, GC, char *, Pixmap *, Pixmap *);
+int Read_PCX_to_Pixmap(Display *, Window, GC, char *, Pixmap *, Pixmap *);
 
-Image *Read_PCX_to_Image(char *);
 Image *newImage(unsigned int, unsigned int, unsigned int);
 void freeImage(Image *);
 void freeXImage(Image *, XImageInfo *);
 
+#endif /* !TARGET_SDL */
 #endif /* IMAGE_H */