*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
if (4 != sscanf ((const char *) *data,
"%d %d %d %d %c", &w, &h, &ncolors, &nbytes, &c)) {
if (4 != sscanf ((const char *) *data,
"%d %d %d %d %c", &w, &h, &ncolors, &nbytes, &c)) {
ximage = XCreateImage (dpy, visual, depth,
(depth == 1 ? XYBitmap : ZPixmap),
0, 0, w, h, 8, 0);
ximage = XCreateImage (dpy, visual, depth,
(depth == 1 ? XYBitmap : ZPixmap),
0, 0, w, h, 8, 0);
ximage->bitmap_bit_order =
ximage->byte_order =
(bigendian() ? MSBFirst : LSBFirst);
ximage->data = (char *) calloc (ximage->height, ximage->bytes_per_line);
ximage->bitmap_bit_order =
ximage->byte_order =
(bigendian() ? MSBFirst : LSBFirst);
ximage->data = (char *) calloc (ximage->height, ximage->bytes_per_line);