From: Derek Foreman Date: Fri, 28 Mar 2003 02:33:28 +0000 (+0000) Subject: black for parentrelative so we can test icons X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=16b17599b74bb0ffd80b23d75c81a948860c5814;p=chaz%2Fopenbox black for parentrelative so we can test icons --- diff --git a/render/render.c b/render/render.c index 8cc44354..fb48e686 100644 --- a/render/render.c +++ b/render/render.c @@ -110,7 +110,11 @@ void x_paint(Window win, Appearance *l, int x, int y, int w, int h) g_free(l->surface.data.planar.pixel_data); l->surface.data.planar.pixel_data = g_new(pixel32, w * h); - if (l->surface.data.planar.grad == Background_Solid) + + if (l->surface.data.planar.grad == Background_ParentRelative) { + memset(l->surface.data.planar.pixel_data, 0xFF, w*h*4); + } + else if (l->surface.data.planar.grad == Background_Solid) gradient_solid(l, x, y, w, h); else gradient_render(&l->surface, w, h);