From: Dana Jansens Date: Tue, 2 Sep 2003 19:16:56 +0000 (+0000) Subject: interlace is drawn first, so bevels n shit cover it X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=72f3195821db36b32f7ce8a13bea49f1170232a6;p=chaz%2Fopenbox interlace is drawn first, so bevels n shit cover it --- diff --git a/render/gradient.c b/render/gradient.c index c2f7fac7..febf9fed 100644 --- a/render/gradient.c +++ b/render/gradient.c @@ -42,6 +42,22 @@ void RrRender(RrAppearance *a, int w, int h) return; } + if (a->surface.interlaced) { + int i; + RrPixel32 *p; + + r = a->surface.interlace_color->r; + g = a->surface.interlace_color->g; + b = a->surface.interlace_color->b; + current = (r << RrDefaultRedOffset) + + (g << RrDefaultGreenOffset) + + (b << RrDefaultBlueOffset); + p = data; + for (i = 0; i < h; i += 2, p += w) + for (x = 0; x < w; ++x, ++p) + *p = current; + } + if (a->surface.relief == RR_RELIEF_FLAT && a->surface.border) { r = a->surface.border_color->r; g = a->surface.border_color->g; @@ -82,23 +98,6 @@ void RrRender(RrAppearance *a, int w, int h) a->surface.relief==RR_RELIEF_RAISED); } } - - if (a->surface.interlaced) { - int i; - RrPixel32 *p; - - r = a->surface.interlace_color->r; - g = a->surface.interlace_color->g; - b = a->surface.interlace_color->b; - current = (r << RrDefaultRedOffset) - + (g << RrDefaultGreenOffset) - + (b << RrDefaultBlueOffset); - p = data; - for (i = 0; i < h; i += 2, p += w) - for (x = 0; x < w; ++x, ++p) - *p = current; - } - } static void highlight(RrPixel32 *x, RrPixel32 *y, gboolean raised)