-/*this is not the right place for this code, it's only here so
- text rendering shows up for now.
-*/
- if (l->surface.data.planar.grad != Background_Solid) {
- im = XCreateImage(ob_display, render_visual, render_depth,
- ZPixmap, 0, NULL, w, h, 32, 0);
- g_assert(im != NULL);
- im->byte_order = endian;
- im->data = (char *)l->surface.data.planar.pixel_data;
- reduce_depth((pixel32*)im->data, im);
- XPutImage(ob_display, l->pixmap, DefaultGC(ob_display, ob_screen),
- im, 0, 0, x, y, w, h);
- im->data = NULL;
- XDestroyImage(im);
+ if (l->surface.data.planar.grad == Background_ParentRelative) {
+ sw = l->surface.data.planar.parent->area.width;
+ source = l->surface.data.planar.pixel_data;
+/* for (i = */