- }
-
- /* NOW CREATE IMAGE MASK */
- /* we copy the data to be more consistent */
-
- linelen = ((image->width + 7) / 8);
- data_mask = checked_malloc(linelen * image->height);
-
- memcpy((char *)data_mask, (char *)image->data_mask,
- linelen * image->height);
-
- gcv.function = GXcopy;
- ximageinfo->ximage_mask =
- XCreateImage(display, visual, 1, XYBitmap, 0, (char *)data_mask,
- image->width, image->height, 8, linelen);