From 16b17599b74bb0ffd80b23d75c81a948860c5814 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 28 Mar 2003 02:33:28 +0000 Subject: [PATCH] black for parentrelative so we can test icons --- render/render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.45.2