Fix height bounds check bug in draw_rect3
This commit is contained in:
1 parent
6b196fc399
commit
44e444b552
1 file changed
+1
-1
@@ -1675,7 +1675,7 @@ void draw_rect3(
|
|||||||
x0 = x0 < 0 ? 0 : x0;
|
x0 = x0 < 0 ? 0 : x0;
|
||||||
y0 = y0 < 0 ? 0 : y0;
|
y0 = y0 < 0 ? 0 : y0;
|
||||||
x1 = x1 > width ? width : x1;
|
x1 = x1 > width ? width : x1;
|
||||||
y1 = y1 > width ? height : y1;
|
y1 = y1 > height ? height : y1;
|
||||||
|
|
||||||
for(int column = x0; column < x1; column++)
|
for(int column = x0; column < x1; column++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user