is that a rectangle grad? damned if I know
This commit is contained in:
parent
a18c1697b1
commit
e328dc2f60
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue