From 7d9a39e078d290cd6f6d9763d8b6cb4806317c1b Mon Sep 17 00:00:00 2001 From: "Mr.Blinky" <4971163+MrBlinky@users.noreply.github.com> Date: Tue, 23 Jul 2019 14:51:05 +0200 Subject: [PATCH] fix bug in drawBitmap Fix bug introduced in drawBitmap optimisation --- board-package-source/libraries/Arduboy2/src/Arduboy2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board-package-source/libraries/Arduboy2/src/Arduboy2.cpp b/board-package-source/libraries/Arduboy2/src/Arduboy2.cpp index 84dc5f7..dd55df9 100644 --- a/board-package-source/libraries/Arduboy2/src/Arduboy2.cpp +++ b/board-package-source/libraries/Arduboy2/src/Arduboy2.cpp @@ -871,7 +871,7 @@ void Arduboy2Base::drawBitmap return; int8_t yOffset = y & 7; - int8_t sRow = y; + int8_t sRow = y >> 3; uint8_t rows = h >> 3; for (int a = 0; a < rows; a++) { int bRow = sRow + a;