]> Dogcows Code - chaz/openbox/commitdiff
fix when 1or2px splitvertical
authorDana Jansens <danakj@orodu.net>
Sat, 9 Jun 2007 01:22:34 +0000 (01:22 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 9 Jun 2007 01:22:34 +0000 (01:22 +0000)
render/gradient.c
themes/Onyx/openbox-3/themerc

index 9cf16cc2ae30a26b71bcc8935457f0b82eb95959..c9e9b03d71c56a910d747dcb350e573a502c6b16 100644 (file)
@@ -459,7 +459,10 @@ static void gradient_splitvertical(RrAppearance *a, gint w, gint h)
     y3sz = MAX(h/2 - 1, 0);
 
     SETUP(y1, primary_light, sf->primary, y1sz);
-    SETUP(y2, sf->primary, sf->secondary, y2sz);
+    if (y2sz) {
+        SETUP(y2, sf->primary, sf->secondary, y2sz);
+        NEXT(y2); /* skip the first one, its the same as the last of y1 */
+    }
     SETUP(y3, sf->secondary, secondary_light,  y3sz);
 
     for (y1 = y1sz; y1 > 0; --y1) {
@@ -470,7 +473,6 @@ static void gradient_splitvertical(RrAppearance *a, gint w, gint h)
         NEXT(y1);
     }
 
-    NEXT(y2); /* skip the first one, its the same as the last of y1 */
     for (y2 = y2sz; y2 > 0; --y2) {
         current = COLOR(y2);
         for (x = w - 1; x >= 0; --x)
index 5d504e525c5a7c75a91bb5a2b9e26d12d7785fb8..023afd8d9a39908319182726c4195bc3075afafa 100644 (file)
@@ -40,7 +40,7 @@ window.inactive.label.bg: parentrelative
 window.inactive.label.text.color: #606060
 
 !! Handle
-window.active.handle.bg: solid flat
+window.active.handle.bg: gradient flat splitvertical
 window.active.handle.bg.color: #303030
 window.inactive.handle.bg: solid flat
 window.inactive.handle.bg.color: #b0b0b0
This page took 0.024557 seconds and 4 git commands to generate.