]> Dogcows Code - chaz/openbox/commitdiff
interlace is drawn first, so bevels n shit cover it
authorDana Jansens <danakj@orodu.net>
Tue, 2 Sep 2003 19:16:56 +0000 (19:16 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 2 Sep 2003 19:16:56 +0000 (19:16 +0000)
render/gradient.c

index c2f7fac73cce4f8528617a6b97c01eb790b670bc..febf9feded76569d656c88e4e9299980408b5246 100644 (file)
@@ -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)
This page took 0.024093 seconds and 4 git commands to generate.