mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Revert "Make unhighlighted directory text flicker"
This commit is contained in:
parent
d550d08e2b
commit
c55cd9684d
@ -45,7 +45,6 @@
|
|||||||
#define OPTIONS_ENTRIES_START_ROW 2
|
#define OPTIONS_ENTRIES_START_ROW 2
|
||||||
#define ENTRY_PAGE_LENGTH 10
|
#define ENTRY_PAGE_LENGTH 10
|
||||||
bool bigJump = false;
|
bool bigJump = false;
|
||||||
bool whiteFolderName = false;
|
|
||||||
extern PrintConsole topConsole, bottomConsole;
|
extern PrintConsole topConsole, bottomConsole;
|
||||||
|
|
||||||
static char path[PATH_MAX];
|
static char path[PATH_MAX];
|
||||||
@ -157,7 +156,7 @@ void showDirectoryContents (const vector<DirEntry>& dirContents, int fileOffset,
|
|||||||
if ((fileOffset - startRow) == i) {
|
if ((fileOffset - startRow) == i) {
|
||||||
printf ("\x1B[47m"); // Print foreground white color
|
printf ("\x1B[47m"); // Print foreground white color
|
||||||
} else if (entry->isDirectory) {
|
} else if (entry->isDirectory) {
|
||||||
printf (whiteFolderName ? "\x1B[47m" : "\x1B[34m"); // Print foreground white color or background blue color
|
printf ("\x1B[34m"); // Print background blue color
|
||||||
} else {
|
} else {
|
||||||
printf ("\x1B[40m"); // Print foreground black color
|
printf ("\x1B[40m"); // Print foreground black color
|
||||||
}
|
}
|
||||||
@ -175,7 +174,6 @@ void showDirectoryContents (const vector<DirEntry>& dirContents, int fileOffset,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
whiteFolderName = !whiteFolderName;
|
|
||||||
printf ("\x1B[47m"); // Print foreground white color
|
printf ("\x1B[47m"); // Print foreground white color
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -477,7 +475,10 @@ string browseForFile (void) {
|
|||||||
|
|
||||||
// Power saving loop. Only poll the keys once per frame and sleep the CPU if there is nothing else to do
|
// Power saving loop. Only poll the keys once per frame and sleep the CPU if there is nothing else to do
|
||||||
do {
|
do {
|
||||||
showDirectoryContents (dirContents, fileOffset, screenOffset);
|
// Move to right side of screen
|
||||||
|
printf ("\x1b[0;26H");
|
||||||
|
// Print time
|
||||||
|
printf ("_%s" ,RetTime().c_str());
|
||||||
|
|
||||||
scanKeys();
|
scanKeys();
|
||||||
pressed = keysDownRepeat();
|
pressed = keysDownRepeat();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user