|
|
@ -230,7 +230,7 @@ void fb_bitmap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, u |
|
|
|
while (h > 0) { |
|
|
|
while (h > 0) { |
|
|
|
// First
|
|
|
|
// First
|
|
|
|
for (uint8_t i = 0; i < w; i++) { |
|
|
|
for (uint8_t i = 0; i < w; i++) { |
|
|
|
uint8_t mask = (map[i + mapc0] & (0xFF >> (rowrem))) << rowrem; |
|
|
|
uint8_t mask = (map[i + mapc0] & (0xFF >> rowrem)) << rowrem; |
|
|
|
if (color) { |
|
|
|
if (color) { |
|
|
|
fb[cell + i] |= mask; |
|
|
|
fb[cell + i] |= mask; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -245,7 +245,7 @@ void fb_bitmap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, u |
|
|
|
|
|
|
|
|
|
|
|
// last
|
|
|
|
// last
|
|
|
|
for (uint8_t i = 0; i < w; i++) { |
|
|
|
for (uint8_t i = 0; i < w; i++) { |
|
|
|
uint8_t mask = map[i + mapc0] >> (8 - rowrem); |
|
|
|
uint8_t mask = (map[i + mapc0] & (0xFF << (8 - rowrem))) >> rowrem; |
|
|
|
if (color) { |
|
|
|
if (color) { |
|
|
|
fb[cell + i] |= mask; |
|
|
|
fb[cell + i] |= mask; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|