From 177cbc9c228a116815227b2c0624f9db1bd8f9ad Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 30 Oct 2023 01:41:05 -0600 Subject: [PATCH] DSi-based themes: Fix color mode not applying to .bmp image files --- romsel_dsimenutheme/arm9/source/graphics/Texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/romsel_dsimenutheme/arm9/source/graphics/Texture.cpp b/romsel_dsimenutheme/arm9/source/graphics/Texture.cpp index 9c2d53de99..3e45981115 100644 --- a/romsel_dsimenutheme/arm9/source/graphics/Texture.cpp +++ b/romsel_dsimenutheme/arm9/source/graphics/Texture.cpp @@ -152,6 +152,9 @@ void Texture::loadBitmap(FILE *file) noexcept { u8 b = lroundf((color & 0xFF) * 31 / 255.0f) & 0x1F; _palette[i] = BIT(15) | b << 10 | g << 5 | r; + if (ms().colorMode > 0) { + _palette[i] = colorTable[_palette[i]]; + } } }