wip
This commit is contained in:
+2
-2
@@ -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) {
|
||||
// First
|
||||
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) {
|
||||
fb[cell + i] |= mask;
|
||||
} 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
|
||||
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) {
|
||||
fb[cell + i] |= mask;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user