of by one error in pyramid, rectangle, and crosspipe

This commit is contained in:
Derek Foreman 2003-05-20 19:07:27 +00:00
parent 0de48102a4
commit 76425437d4

View file

@ -391,7 +391,7 @@ void gradient_solid(Appearance *l, int x, int y, int w, int h)
void gradient_pyramid(Surface *sf, int inw, int inh)
{
pixel32 *data = sf->data.planar.pixel_data;
pixel32 *end = data + inw*inh;
pixel32 *end = data + inw*inh - 1;
pixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
@ -434,7 +434,7 @@ void gradient_pyramid(Surface *sf, int inw, int inh)
void gradient_rectangle(Surface *sf, int inw, int inh)
{
pixel32 *data = sf->data.planar.pixel_data;
pixel32 *end = data + inw*inh;
pixel32 *end = data + inw*inh - 1;
pixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
@ -479,7 +479,7 @@ void gradient_rectangle(Surface *sf, int inw, int inh)
void gradient_pipecross(Surface *sf, int inw, int inh)
{
pixel32 *data = sf->data.planar.pixel_data;
pixel32 *end = data + inw*inh;
pixel32 *end = data + inw*inh - 1;
pixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;