Fix color changing after opening keyboard (#126)

This commit is contained in:
Pk11 2021-12-18 20:24:41 -06:00 committed by GitHub
parent 6f163060b0
commit 48881bb810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -773,6 +773,8 @@ std::string browseForFile (void) {
videoSetModeSub(MODE_5_2D);
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
BG_PALETTE_SUB[0] = 0x0000;
BG_PALETTE_SUB[1] = 0x7FFF;
if (newName[0] != '\0') {
// Check for unsupported characters
@ -903,6 +905,8 @@ std::string browseForFile (void) {
videoSetModeSub(MODE_5_2D);
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
BG_PALETTE_SUB[0] = 0x0000;
BG_PALETTE_SUB[1] = 0x7FFF;
if (newName[0] != '\0') {
// Check for unsupported characters

View File

@ -102,6 +102,8 @@ u32 search(u32 offset, FILE *file) {
videoSetModeSub(MODE_5_2D);
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
BG_PALETTE_SUB[0] = 0x0000;
BG_PALETTE_SUB[1] = 0x7FFF;
BG_PALETTE_SUB[0x1F] = 0x9CF7;
BG_PALETTE_SUB[0x2F] = 0xB710;