all repos — openbox @ b24e6fbfa17bd20b3ac977c006be891a88ed89ac

openbox fork - make it a bit more like ryudo

there's the rect grad.  now stop bugging me :(
Derek Foreman manmower@gmail.com
commit

b24e6fbfa17bd20b3ac977c006be891a88ed89ac

parent

e328dc2f60764154c37ab31c89fa956d719de10e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M render/gradient.crender/gradient.c

@@ -397,7 +397,7 @@ dbx = (float)(sf->data.planar.secondary->b - sf->data.planar.primary->b);

dby = dbx/(float)h; dbx/= (float)w; for (x = 0; x < w; ++x, data) { - if (drx * x < dry * y) val = (int)(drx * x); + if ((float)x/(float)w < (float)y/(float)h) val = (int)(drx * x); else val = (int)(dry * y); r = sf->data.planar.primary->r + val;