mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix color changing after opening keyboard (#126)
This commit is contained in:
parent
6f163060b0
commit
48881bb810
@ -773,6 +773,8 @@ std::string browseForFile (void) {
|
|||||||
|
|
||||||
videoSetModeSub(MODE_5_2D);
|
videoSetModeSub(MODE_5_2D);
|
||||||
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
|
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
|
||||||
|
BG_PALETTE_SUB[0] = 0x0000;
|
||||||
|
BG_PALETTE_SUB[1] = 0x7FFF;
|
||||||
|
|
||||||
if (newName[0] != '\0') {
|
if (newName[0] != '\0') {
|
||||||
// Check for unsupported characters
|
// Check for unsupported characters
|
||||||
@ -903,6 +905,8 @@ std::string browseForFile (void) {
|
|||||||
|
|
||||||
videoSetModeSub(MODE_5_2D);
|
videoSetModeSub(MODE_5_2D);
|
||||||
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
|
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
|
||||||
|
BG_PALETTE_SUB[0] = 0x0000;
|
||||||
|
BG_PALETTE_SUB[1] = 0x7FFF;
|
||||||
|
|
||||||
if (newName[0] != '\0') {
|
if (newName[0] != '\0') {
|
||||||
// Check for unsupported characters
|
// Check for unsupported characters
|
||||||
|
|||||||
@ -102,6 +102,8 @@ u32 search(u32 offset, FILE *file) {
|
|||||||
|
|
||||||
videoSetModeSub(MODE_5_2D);
|
videoSetModeSub(MODE_5_2D);
|
||||||
bgShow(bgInitSub(2, BgType_Bmp8, BgSize_B8_256x256, 3, 0));
|
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[0x1F] = 0x9CF7;
|
||||||
BG_PALETTE_SUB[0x2F] = 0xB710;
|
BG_PALETTE_SUB[0x2F] = 0xB710;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user