]> Dogcows Code - chaz/openbox/commitdiff
is that a rectangle grad? damned if I know
authorDerek Foreman <manmower@gmail.com>
Sun, 18 May 2003 23:15:37 +0000 (23:15 +0000)
committerDerek Foreman <manmower@gmail.com>
Sun, 18 May 2003 23:15:37 +0000 (23:15 +0000)
render/gradient.c

index 97c62dab4912dfa41c534be4d025299721955bc3..4b89434fed06999756f64017c7e30c93ec50fe61 100644 (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;
This page took 0.021944 seconds and 4 git commands to generate.