is that a rectangle grad? damned if I know

This commit is contained in:
Derek Foreman 2003-05-18 23:15:37 +00:00
parent a18c1697b1
commit e328dc2f60

View file

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