Skip to content

Commit 46df280

Browse files
Merge pull request #29 from sparkfun/bugfix/ch1120_bitmap
Add same corruption fix from the ssd1306 for the ch1120
2 parents c512292 + 7275c97 commit 46df280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qwiic_grch1120.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ void QwGrCH1120::drawBitmap(uint8_t x0, uint8_t y0, uint8_t dst_width, uint8_t d
967967
bmp_y += neededBits;
968968

969969
pageCheckBoundsRange(m_pageState[iPage], x0,
970-
x0 + dst_width); // mark dirty range in page desc
970+
x0 + dst_width - 1); // mark dirty range in page desc
971971
}
972972
}
973973

0 commit comments

Comments
 (0)