openbsd-ports/x11/openbox/patches/patch-render-gradient_c
jasper 2753d7666e - update openbox to 3.3.1
- zap NO_REGRESS
- re-format DESCR while there

please note there are new themes introduced, so you may find your old
theme removed.

ok naddy
2006-10-26 21:40:26 +00:00

25 lines
615 B
Plaintext

--- render/gradient.c.orig Tue Oct 17 15:29:19 2006
+++ render/gradient.c Tue Oct 17 15:29:50 2006
@@ -371,6 +371,9 @@
RrPixel32 current;
RrColor *primary_light, *secondary_light;
+ VARS(y1);
+ VARS(y3);
+
r = sf->primary->r;
r += r >> 2;
g = sf->primary->g;
@@ -393,10 +396,8 @@
if (b > 0xFF) b = 0xFF;
secondary_light = RrColorNew(a->inst, r, g, b);
- VARS(y1);
SETUP(y1, primary_light, sf->primary, (h / 2) -1);
-
- VARS(y3);
+
SETUP(y3, sf->secondary, secondary_light, (h / 2) -1);
for (y1 = h - 1; y1 > (h / 2) -1; --y1) { /* 0 -> h-1 */