]> Dogcows Code - chaz/openbox/commitdiff
PYRAMID PARTY PART 2!!!
authorDerek Foreman <manmower@gmail.com>
Tue, 15 Apr 2003 02:24:03 +0000 (02:24 +0000)
committerDerek Foreman <manmower@gmail.com>
Tue, 15 Apr 2003 02:24:03 +0000 (02:24 +0000)
render/gradient.c

index b80f9426483ba533c7609340430cd0cc0da5ae53..00230323108f262ea8cf414137612547841694bd 100644 (file)
@@ -338,7 +338,7 @@ void gradient_pyramid(Surface *sf, int inw, int inh)
   pixel32 current;
   float drx, dgx, dbx, dry, dgy, dby;
   unsigned int r,g,b;
-  int x, y, h=inh/2, w=inw/2;
+  int x, y, h=(inh+1)/2, w=(inw+1)/2;
 memset(data, 0, inw*inh*sizeof(pixel32));
   for (y = 0; y < h; ++y) {
     drx = (float)(sf->data.planar.secondary->r - sf->data.planar.primary->r);
This page took 0.027257 seconds and 4 git commands to generate.