off by one may have been causing segv's ? :)

SVN revision: 3588
This commit is contained in:
Carsten Haitzler 2000-10-13 04:31:01 +00:00
parent b595fe6a65
commit 10b12fd3ad
1 changed files with 1 additions and 1 deletions

View File

@ -2359,7 +2359,7 @@ __imlib_draw_polygon_filled(ImlibImage * im, ImlibPoly poly, int clip_xmin,
x1 = ss->x - 1;
x2 = s->x + 1;
}
if ((x1 <= clip_xmax) && (x2 >= clip_xmin) && (x1 < x2))
if ((x1 <= clip_xmax) && (x2 > clip_xmin) && (x1 < x2))
{
if (x1 < clip_xmin) x1 = clip_xmin;
if (x2 > (clip_xmax + 1)) x2 = clip_xmax + 1;