Skip to content

Commit

Permalink
DSi-based themes: Fix color mode not applying to .bmp image files
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Oct 30, 2023
1 parent 62d4d81 commit 177cbc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions romsel_dsimenutheme/arm9/source/graphics/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
}
}

Expand Down

0 comments on commit 177cbc9

Please sign in to comment.