Skip to content

Commit 90e268f

Browse files
author
Matthew Matz
authored
Fixed filled box error
1 parent 18deacd commit 90e268f

File tree

1 file changed

+1
-1
lines changed
  • Learn/Simple Libraries/Social/libbadgetools

1 file changed

+1
-1
lines changed

Learn/Simple Libraries/Social/libbadgetools/oled_box.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void boxFilled(int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t c)
2525
x0 = x1;
2626
x1 = temp;
2727
}
28-
for(int idx = y0; idx < y1; idx++) line(x0, idx, x1, idx, c);
28+
for(int idx = y0; idx <= y1; idx++) line(x0, idx, x1, idx, c);
2929
if (self->AutoUpdate) screen_update();
3030
}
3131

0 commit comments

Comments
 (0)