byte-swap our jpegs, it's better for our TFTs and such

This commit is contained in:
Jeff Epler 2023-12-05 17:06:43 -06:00
parent f7b9a516d8
commit db07775ca6
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -945,7 +945,7 @@ static JRESULT mcu_output (
w = (*s++ & 0xF8) << 8; /* RRRRR----------- */
w |= (*s++ & 0xFC) << 3; /* -----GGGGGG----- */
w |= *s++ >> 3; /* -----------BBBBB */
*d++ = w;
*d++ = __builtin_bswap16(w);
} while (--n);
}