Fix height bounds check bug in draw_rect3

This commit is contained in:
Patrick Jakobsen committed 2023-09-25 12:45:56 +02:00
1 parent 6b196fc399
commit 44e444b552
1 file changed
+1 -1
+1 -1
View File
@@ -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++)
{ {