there's the rect grad. now stop bugging me :(
Derek Foreman manmower@gmail.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
render/gradient.c
→
render/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;