mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2026-10-27 06:21:36 +00:00
Fixed bit order reversal in drawBitmap()
This commit is contained in:
1 parent
4c865e0f29
commit
cf94144e99
1 file changed
+1
-1
+1
-1
@@ -339,7 +339,7 @@ void Adafruit_GFX::drawBitmap(int16_t x, int16_t y,
|
||||
|
||||
for(j=0; j<h; j++) {
|
||||
for(i=0; i<w; i++ ) {
|
||||
if(pgm_read_byte(bitmap + j * byteWidth + i / 8) & _BV(i & 7)) {
|
||||
if(pgm_read_byte(bitmap + j * byteWidth + i / 8) & (128 >> (i & 7))) {
|
||||
drawPixel(x+i, y+j, color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user