]> Dogcows Code - chaz/openbox/blobdiff - render/gradient.c
PYRAMID PARTY PART 2!!!
[chaz/openbox] / 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.024561 seconds and 4 git commands to generate.