mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix screenshot taking
This commit is contained in:
parent
9b4876a8e4
commit
336dbe0b20
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user