fix bug in drawBitmap

Fix bug introduced in drawBitmap optimisation
This commit is contained in:
Mr.Blinky 2019-07-23 14:51:05 +02:00 committed by GitHub
parent 0078f43a18
commit 7d9a39e078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ void Arduboy2Base::drawBitmap
return; return;
int8_t yOffset = y & 7; int8_t yOffset = y & 7;
int8_t sRow = y; int8_t sRow = y >> 3;
uint8_t rows = h >> 3; uint8_t rows = h >> 3;
for (int a = 0; a < rows; a++) { for (int a = 0; a < rows; a++) {
int bRow = sRow + a; int bRow = sRow + a;