mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 06:47:42 +00:00
transparent splash logo & fix tab widget color glitch (#2256)
This commit is contained in:
@@ -359,12 +359,12 @@ void ILI9341::drawBMP(const ui::Point p, const uint8_t* bitmap, const bool trans
|
||||
data_idx = bmp_header->image_data;
|
||||
const bmp_palette_t* bmp_palette = (const bmp_palette_t*)&bitmap[bmp_header->BIH_size + 14];
|
||||
|
||||
// Convert palette and find pure magenta index (alpha color key)
|
||||
// Convert palette and find pure magenta index (alpha color key) rgb dec(41,24,22)
|
||||
for (c = 0; c < 16; c++) {
|
||||
palette[c] = ui::Color(bmp_palette->color[c].R, bmp_palette->color[c].G, bmp_palette->color[c].B);
|
||||
if ((bmp_palette->color[c].R == 0xFF) &&
|
||||
(bmp_palette->color[c].G == 0x00) &&
|
||||
(bmp_palette->color[c].B == 0xFF)) transp_idx = c;
|
||||
if ((bmp_palette->color[c].R == 0x29) &&
|
||||
(bmp_palette->color[c].G == 0x18) &&
|
||||
(bmp_palette->color[c].B == 0x16)) transp_idx = c;
|
||||
}
|
||||
|
||||
if (!transparency) {
|
||||
|
Reference in New Issue
Block a user