Skip to content

Commit c58b715

Browse files
committed
Fix icon size typo.
1 parent ce0f520 commit c58b715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/Example6_DrawIcon/Example6_DrawIcon.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ uint8_t truck[] = {
6767
};
6868

6969
int iconHeight = 17;
70-
int iconWidth = 20;
70+
int iconWidth = 19;
7171

7272
bool displayDetected = false;
7373

src/SFE_MicroOLED.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void MicroOLED::drawIcon(uint8_t offsetX, uint8_t offsetY, uint8_t iconWidth, ui
10861086
}
10871087

10881088
columnNumber++;
1089-
if (columnNumber == offsetX + iconWidth - 1)
1089+
if (columnNumber == offsetX + iconWidth)
10901090
{
10911091
//Wrap to next row
10921092
rowNumber++;

0 commit comments

Comments
 (0)