Fix screenshot taking

This commit is contained in:
RocketRobz 2020-02-04 01:33:30 -07:00
parent 9b4876a8e4
commit 336dbe0b20
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);