mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Move these two lines after calculating the slopes
This commit is contained in:
parent
4f97b7730b
commit
e12288be3f
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue