]> Dogcows Code - chaz/openbox/commitdiff
draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it.
authorDana Jansens <danakj@orodu.net>
Thu, 24 Jul 2003 05:33:41 +0000 (05:33 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 24 Jul 2003 05:33:41 +0000 (05:33 +0000)
render/gradient.c

index ab15369b90be8642fe430acdc4ff030dbea39599..26ebbdc60515b50c8e36c08216151fc6aa60894d 100644 (file)
@@ -21,7 +21,7 @@ void RrRender(RrAppearance *a, int w, int h)
     switch (a->surface.grad) {
     case RR_SURFACE_SOLID:
         gradient_solid(a, w, h);
-        return;
+        break;
     case RR_SURFACE_VERTICAL:
         gradient_vertical(&a->surface, w, h);
         break;
@@ -183,6 +183,9 @@ static void gradient_solid(RrAppearance *l, int w, int h)
 
         switch (sp->bevel) {
         case RR_BEVEL_1:
+            g_message("%lx %lx %lx",
+                      sp->primary->pixel,
+                      sp->bevel_dark->pixel, sp->bevel_light->pixel);
             XDrawLine(RrDisplay(l->inst), l->pixmap, sp->bevel_dark->gc,
                       left, bottom, right, bottom);
             XDrawLine(RrDisplay(l->inst), l->pixmap, sp->bevel_dark->gc,
This page took 0.029133 seconds and 4 git commands to generate.