X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fimage.h;h=6315340eaf9d5d98371f2aaabd7b9195f7e2ca47;hp=50335eea15a5eaff0117bbe4a4f0f217c49ad3b8;hb=3ae3dff29ac1a6022b1e5af414ba2c99391148c8;hpb=40a487dcc5d3028343ff9123a72b8b3839a42861 diff --git a/src/image.h b/src/image.h index 50335eea..6315340e 100644 --- a/src/image.h +++ b/src/image.h @@ -23,7 +23,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,16 +49,8 @@ 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_Pixmap(Display *, Window, GC, char *, Pixmap *, Pixmap *); -int Read_PCX_to_Pixmaps(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 *);