Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Oct 31, 2023
1 parent 7f507fa commit d412c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions romsel_dsimenutheme/arm9/source/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,9 @@ void loadBootstrapScreenshot(FILE *file) {

// RGB 565 -> BGR 5551
val = ((val >> 11) & 0x1F) | ((val & (0x1F << 6)) >> 1) | ((val & 0x1F) << 10) | BIT(15);
if (ms().colorMode > 0) {
val = colorTable[val]; // TODO: Remove this when nds-bootstrap supports color modes
}

u8 y = photoHeight - row - 1;
bgSubBuffer[(24 + y) * 256 + 24 + col] = val;
Expand Down

0 comments on commit d412c64

Please sign in to comment.