Browse Source

Fix height bounds check bug in draw_rect3

master
Patrick Jakobsen 2 years ago
parent
commit
44e444b552
  1. 2
      gui/gui.c

2
gui/gui.c

@ -1675,7 +1675,7 @@ void draw_rect3(
x0 = x0 < 0 ? 0 : x0;
y0 = y0 < 0 ? 0 : y0;
x1 = x1 > width ? width : x1;
y1 = y1 > width ? height : y1;
y1 = y1 > height ? height : y1;
for(int column = x0; column < x1; column++)
{

Loading…
Cancel
Save