]> Dogcows Code - chaz/openbox/commitdiff
black for parentrelative so we can test icons
authorDerek Foreman <manmower@gmail.com>
Fri, 28 Mar 2003 02:33:28 +0000 (02:33 +0000)
committerDerek Foreman <manmower@gmail.com>
Fri, 28 Mar 2003 02:33:28 +0000 (02:33 +0000)
render/render.c

index 8cc443546a969366100b4d6992b23f3600619bb1..fb48e686517ebbbc135cf9f2184eac8f77c249a2 100644 (file)
@@ -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);
 
This page took 0.021985 seconds and 4 git commands to generate.