From 5cd3a707d30210944b19904844565c29d4b0fc72 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Tue, 4 Feb 2020 15:24:25 -0700 Subject: [PATCH] Replace background white color --- arm9/source/file_browse.cpp | 6 +++--- arm9/source/main.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index b70d46d..941b47e 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -152,7 +152,7 @@ void showDirectoryContents (const vector& dirContents, int fileOffset, if ((fileOffset - startRow) == i) { printf ("\x1B[47m"); // Print foreground white color } else if (entry->isDirectory) { - printf ("\x1B[37m"); // Print background white color + printf ("\x1B[37m"); // Print custom blue color } else { printf ("\x1B[40m"); // Print foreground black color } @@ -427,7 +427,7 @@ void fileBrowse_drawBottomScreen(DirEntry* entry) { printf (POWERTEXT); } - printf (entry->isDirectory ? "\x1B[37m" : "\x1B[40m"); // Print background white color or foreground black color + printf (entry->isDirectory ? "\x1B[37m" : "\x1B[40m"); // Print custom blue color or foreground black color printf ("\x1b[0;0H"); printf ("%s\n", entry->name.c_str()); if (strcmp(entry->name.c_str(), "..") != 0) { @@ -443,7 +443,7 @@ void fileBrowse_drawBottomScreen(DirEntry* entry) { printf ("\x1b[9;0H"); printf ("\x1B[47m"); // Print foreground white color printf ("[CLIPBOARD]\n"); - printf (clipboardFolder ? "\x1B[37m" : "\x1B[40m"); // Print background white color or foreground black color + printf (clipboardFolder ? "\x1B[37m" : "\x1B[40m"); // Print custom blue color or foreground black color printf (clipboardFilename); } } diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index e3e16c6..7c3a31e 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -159,6 +159,9 @@ int main(int argc, char **argv) { videoSetMode(MODE_0_2D); vramSetBankG(VRAM_G_MAIN_BG); consoleInit(&topConsole, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true); + + BG_PALETTE[15+(7*16)] = 0x656A; + BG_PALETTE_SUB[15+(7*16)] = 0x656A; keysSetRepeat(25,5);