diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:27:16 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:27:16 +0000 |
commit | fbfe965054d8144946651b19085684af7f6715b9 (patch) | |
tree | f276c3a252afb26db23814413a7a7f5d4d486296 /src | |
parent | c037348b5df0ac94ad4daba59f8bc9acf12ef623 (diff) | |
download | xorg-lib-libXpm-fbfe965054d8144946651b19085684af7f6715b9.tar.gz |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'src')
-rw-r--r-- | src/XpmI.h | 3 | ||||
-rw-r--r-- | src/create.c | 16 |
2 files changed, 7 insertions, 12 deletions
@@ -22,7 +22,7 @@ * used in advertising or otherwise to promote the sale, use or other dealings * in this Software without prior written authorization from GROUPE BULL. */ -/* $XFree86: xc/extras/Xpm/lib/XpmI.h,v 1.8 2002/01/07 19:40:23 dawes Exp $ */ +/* $XFree86: xc/extras/Xpm/lib/XpmI.h,v 1.9 2003/08/06 14:03:58 eich Exp $ */ /*****************************************************************************\ * XpmI.h: * @@ -58,6 +58,7 @@ extern FILE *popen(); #include <X11/Xos.h> #include <X11/Xfuncs.h> +#include <X11/Xmd.h> #ifdef VMS #include <unixio.h> diff --git a/src/create.c b/src/create.c index 770fbf8..2fba038 100644 --- a/src/create.c +++ b/src/create.c @@ -32,7 +32,7 @@ * * * Developed by Arnaud Le Hors * \*****************************************************************************/ -/* $XFree86: xc/extras/Xpm/lib/create.c,v 1.3 2002/01/07 19:40:49 dawes Exp $ */ +/* $XFree86: xc/extras/Xpm/lib/create.c,v 1.5 2003/10/07 21:25:37 herrb Exp $ */ /* * The code related to FOR_MSW has been added by @@ -126,7 +126,9 @@ LFUNC(PutImagePixels1, void, (XImage *image, unsigned int width, LFUNC(PutPixel1, int, (XImage *ximage, int x, int y, unsigned long pixel)); LFUNC(PutPixel, int, (XImage *ximage, int x, int y, unsigned long pixel)); +#if !defined(WORD64) && !defined(LONG64) LFUNC(PutPixel32, int, (XImage *ximage, int x, int y, unsigned long pixel)); +#endif LFUNC(PutPixel32MSB, int, (XImage *ximage, int x, int y, unsigned long pixel)); LFUNC(PutPixel32LSB, int, (XImage *ximage, int x, int y, unsigned long pixel)); LFUNC(PutPixel16MSB, int, (XImage *ximage, int x, int y, unsigned long pixel)); @@ -765,7 +767,6 @@ XpmCreateImageFromXpmImage(display, image, unsigned int depth; int bitmap_format; XpmFreeColorsFunc freeColors; - void *closure; /* variables to return */ XImage *ximage = NULL; @@ -812,10 +813,6 @@ XpmCreateImageFromXpmImage(display, image, freeColors = attributes->free_colors; else freeColors = FreeColors; - if (attributes && (attributes->valuemask & XpmColorClosure)) - closure = attributes->color_closure; - else - closure = NULL; ErrorStatus = XpmSuccess; @@ -1812,6 +1809,7 @@ PutPixel(ximage, x, y, pixel) return 1; } +#if !defined(WORD64) && !defined(LONG64) static int PutPixel32(ximage, x, y, pixel) register XImage *ximage; @@ -1825,6 +1823,7 @@ PutPixel32(ximage, x, y, pixel) *((unsigned long *)addr) = pixel; return 1; } +#endif static int PutPixel32MSB(ximage, x, y, pixel) @@ -1951,7 +1950,6 @@ xpmParseDataAndCreate(display, data, image_return, shapeimage_return, unsigned int depth; int bitmap_format; XpmFreeColorsFunc freeColors; - void *closure; /* variables to return */ XImage *ximage = NULL; @@ -2009,10 +2007,6 @@ xpmParseDataAndCreate(display, data, image_return, shapeimage_return, freeColors = attributes->free_colors; else freeColors = FreeColors; - if (attributes && (attributes->valuemask & XpmColorClosure)) - closure = attributes->color_closure; - else - closure = NULL; cmts = info && (info->valuemask & XpmReturnComments); |