1

update mode

This commit is contained in:
2022-06-23 12:58:34 +02:00
parent 0869768ea0
commit e6e2674164
24 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ void LFBgraphics::drawSprite(unsigned int width, unsigned int height, unsigned i
switch (bytes_pp) {
case 2:
// TODO: Never tested, probably doesn't work
this->drawPixel(x, y, RGB_24(*ptr & 0b11111000, (*ptr & 0b111) | (*(ptr + 1) & 0b11100000),
this->drawPixel(x, y, RGB_24(*ptr & 0b11111000, ((*ptr & 0b111) << 3) | (*(ptr + 1) >> 5),
*(ptr + 1) & 0b11111)); // RGB 565
break;
case 3: