version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_png_c = | | * static char *rcsid_png_c = |
* "$Id: png.c,v 1.5 2001/07/14 04:05:28 mwedel Exp $"; | | * "$Id: png.c,v 1.6 2002/05/20 03:11:49 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
Crossfire client, a client program for the crossfire program. | | Crossfire client, a client program for the crossfire program. |
| | |
ximage = XCreateImage(display, visual, | | ximage = XCreateImage(display, visual, |
depth, | | depth, |
ZPixmap, 0, 0, | | ZPixmap, 0, 0, |
32, 32, pad, 0); | | 256, 256, pad, 0); |
if (!ximage) { | | if (!ximage) { |
fprintf(stderr,"Failed to create Ximage\n"); | | fprintf(stderr,"Failed to create Ximage\n"); |
return 1; | | return 1; |
} | | } |
ximage->data = malloc(ximage->bytes_per_line * 32); | | ximage->data = malloc(ximage->bytes_per_line * 256); |
if (!ximage->data) { | | if (!ximage->data) { |
fprintf(stderr,"Failed to create Ximage data\n"); | | fprintf(stderr,"Failed to create Ximage data\n"); |
return 1; | | return 1; |