Skip to content

Commit 4aa5993

Browse files
author
Matthew Matz
authored
Fixed boxFilled function
1 parent 9245106 commit 4aa5993

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
@@ -17,7 +17,7 @@ void box(int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t c)
1717
void boxFilled(int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t c)
1818
{
1919
// Draw a box formed by the coordinates of a diagonal line
20-
if(y0 < y1) {
20+
if(y0 > y1) {
2121
int temp = y0;
2222
y0 = y1;
2323
y1 = temp;

0 commit comments

Comments
 (0)