From: Dana Jansens Date: Thu, 24 Jul 2003 05:33:41 +0000 (+0000) Subject: draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=230abdc5a0848cd05dc3a007826a2a6b8a73c0a5;p=chaz%2Fopenbox draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it. --- diff --git a/render/gradient.c b/render/gradient.c index ab15369b..26ebbdc6 100644 --- a/render/gradient.c +++ b/render/gradient.c @@ -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,