draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it.

This commit is contained in:
Dana Jansens 2003-07-24 05:33:41 +00:00
parent 159ef95805
commit 230abdc5a0

View 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,