-#ifdef DO_XBM
- unsigned long fg, bg;
- state->image_width = (state->small_p ? matrix1b_width :matrix1_width);
- state->image_height = (state->small_p ? matrix1b_height:matrix1_height);
- fg = get_pixel_resource(state->dpy, state->xgwa.colormap,
- "foreground", "Foreground");
- bg = get_pixel_resource(state->dpy, state->xgwa.colormap,
- "background", "Background");
- state->images[which] =
- XCreatePixmapFromBitmapData (state->dpy, state->window, (char *)
- (which == 1 ? (state->small_p ? matrix1b_bits :matrix1_bits) :
- (state->small_p ? matrix2b_bits :matrix2_bits)),
- state->image_width, state->image_height,
- bg, fg, state->xgwa.depth);
-#else /* !DO_XBM */
- abort();
-#endif /* !DO_XBM */
+ if (state->small_p)
+ png = matrix2b_png, size = sizeof(matrix2b_png);
+ else
+ png = matrix2_png, size = sizeof(matrix2_png);