Skip to content

Commit a2d212e

Browse files
authored
Merge pull request #70 from MatzElectronics/demo
Fixed filled Box function
2 parents 208892c + cdaa476 commit a2d212e

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

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)