Skip to content

Fix issue with drawing bitmaps of certain heights at non-zero y0 values #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/qwiic_grssd1306.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ void QwGrSSD1306::drawBitmap(uint8_t x0, uint8_t y0, uint8_t dst_width,

if (remainingBits) // more data to add from the next byte in this column
bmp_data |= (pBitmap[bmp_width * (bmpPage + 1) + bmp_x] & bmp_mask[1])
<< (kByteNBits - remainingBits);
<< (neededBits - remainingBits);

// Write the bmp data to the graphics buffer - using current write op.
// Note, if the location in the buffer didn't start at bit 0, we shift
Expand Down