From: Derek Foreman Date: Tue, 15 Apr 2003 02:24:03 +0000 (+0000) Subject: PYRAMID PARTY PART 2!!! X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=b72a3853fc86ff9c6c2b4440a27b05f0edb0d70d;p=chaz%2Fopenbox PYRAMID PARTY PART 2!!! --- diff --git a/render/gradient.c b/render/gradient.c index b80f9426..00230323 100644 --- a/render/gradient.c +++ b/render/gradient.c @@ -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);