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
|
// Seamlessly swap top and bottom screens
|
||||||
lcdMainOnBottom();
|
lcdMainOnBottom();
|
||||||
consoleSelect(&bottomConsole);
|
consoleSelect(&bottomConsole);
|
||||||
dm_drawBottomScreen();
|
|
||||||
consoleSelect(&topConsole);
|
|
||||||
dm_drawTopScreen();
|
dm_drawTopScreen();
|
||||||
printf("\x1B[42m"); // Print green color for time text
|
printf("\x1B[42m"); // Print green color for time text
|
||||||
printf("\x1b[0;27H");
|
printf("\x1b[0;27H");
|
||||||
printf(timeText);
|
printf(timeText);
|
||||||
|
consoleSelect(&topConsole);
|
||||||
|
dm_drawBottomScreen();
|
||||||
// Take bottom screenshot
|
// Take bottom screenshot
|
||||||
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText);
|
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText);
|
||||||
screenshotbmp(snapPath);
|
screenshotbmp(snapPath);
|
||||||
|
|||||||
@ -791,12 +791,12 @@ string browseForFile (void) {
|
|||||||
// Seamlessly swap top and bottom screens
|
// Seamlessly swap top and bottom screens
|
||||||
lcdMainOnBottom();
|
lcdMainOnBottom();
|
||||||
consoleSelect(&bottomConsole);
|
consoleSelect(&bottomConsole);
|
||||||
fileBrowse_drawBottomScreen(entry);
|
|
||||||
consoleSelect(&topConsole);
|
|
||||||
showDirectoryContents (dirContents, fileOffset, screenOffset);
|
showDirectoryContents (dirContents, fileOffset, screenOffset);
|
||||||
printf("\x1B[42m"); // Print green color for time text
|
printf("\x1B[42m"); // Print green color for time text
|
||||||
printf ("\x1b[0;26H");
|
printf ("\x1b[0;26H");
|
||||||
printf ("_%s" ,timeText);
|
printf ("_%s" ,timeText);
|
||||||
|
consoleSelect(&topConsole);
|
||||||
|
fileBrowse_drawBottomScreen(entry);
|
||||||
// Take bottom screenshot
|
// Take bottom screenshot
|
||||||
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText);
|
snprintf(snapPath, sizeof(snapPath), "%s:/gm9i/out/snap_%s_bot.bmp", (sdMounted ? "sd" : "fat"), fileTimeText);
|
||||||
screenshotbmp(snapPath);
|
screenshotbmp(snapPath);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user