From 336dbe0b20015c36f9eb3be51dee5aca239d02a4 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Tue, 4 Feb 2020 01:33:30 -0700 Subject: [PATCH] Fix screenshot taking --- arm9/source/driveMenu.cpp | 4 ++-- arm9/source/file_browse.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arm9/source/driveMenu.cpp b/arm9/source/driveMenu.cpp index 053e834..a92f832 100644 --- a/arm9/source/driveMenu.cpp +++ b/arm9/source/driveMenu.cpp @@ -336,12 +336,12 @@ void driveMenu (void) { // Seamlessly swap top and bottom screens lcdMainOnBottom(); consoleSelect(&bottomConsole); - dm_drawBottomScreen(); - consoleSelect(&topConsole); dm_drawTopScreen(); printf("\x1B[42m"); // Print green color for time text printf("\x1b[0;27H"); printf(timeText); + consoleSelect(&topConsole); + dm_drawBottomScreen(); // Take bottom screenshot snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText); screenshotbmp(snapPath); diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index eba449b..78a269b 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -791,12 +791,12 @@ string browseForFile (void) { // Seamlessly swap top and bottom screens lcdMainOnBottom(); consoleSelect(&bottomConsole); - fileBrowse_drawBottomScreen(entry); - consoleSelect(&topConsole); showDirectoryContents (dirContents, fileOffset, screenOffset); printf("\x1B[42m"); // Print green color for time text printf ("\x1b[0;26H"); printf ("_%s" ,timeText); + consoleSelect(&topConsole); + fileBrowse_drawBottomScreen(entry); // Take bottom screenshot snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText); screenshotbmp(snapPath);