Move these two lines after calculating the slopes

This commit is contained in:
Lactozilla 2023-07-26 00:19:55 -03:00
parent 4f97b7730b
commit e12288be3f

View file

@ -129,9 +129,6 @@ draw_bbox_row
x1 = a->x;
x2 = b->x;
if (x2 >= viewwidth)
x2 = viewwidth - 1;
if (x1 == x2 || x1 >= viewwidth || x2 < 0)
return;
@ -159,6 +156,9 @@ draw_bbox_row
x1 = 0;
}
if (x2 >= viewwidth)
x2 = viewwidth - 1;
while (x1 < x2)
{
raster_bbox_seg(x1, y1, s1, bb->color);