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 ab15369..26ebbdc 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,