There was a minor logic error within QwGrSSD1306::drawBitmap function which caused bitmaps of some heights to drop pixel rows. This was due to an incorrect left-shift value when remainingBits was greater than 0.
To resolve, we derive the left-shift value using:
(neededBits - remainingBits)
rather than:
(kByteNBits - remainingBits)
This handles scenarios where there is less than one bytes worth of bitmap data remaining past the "straddle point"
There was a minor logic error within QwGrSSD1306::drawBitmap function which caused bitmaps of some heights to drop pixel rows. This was due to an incorrect left-shift value when
remainingBits
was greater than 0.To resolve, we derive the left-shift value using:
rather than:
This handles scenarios where there is less than one bytes worth of bitmap data remaining past the "straddle point"
Resolves #17