1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-12-26 11:26:05 +00:00

Fix folder scrolling issues

This commit is contained in:
Such Meme, Many Skill 2019-12-18 16:02:45 +01:00
parent d4010ba04d
commit 2a78d3c924
2 changed files with 13 additions and 6 deletions

View file

@ -127,26 +127,33 @@ void printfsentry(fs_entry file, bool highlight, bool refresh){
if (highlight)
gfx_printf("%K%k", COLOR_WHITE, COLOR_DEFAULT);
else
gfx_printf("%K%k", COLOR_DEFAULT, COLOR_WHITE);
RESETCOLOR;
if (file.property & ISDIR)
gfx_printf("%s\n", display);
gfx_printf("%s", display);
else {
for (size = 4; size < 8; size++)
if ((file.property & (1 << size)))
break;
gfx_printf("%k%s%K", COLOR_VIOLET, display, COLOR_DEFAULT);
SWAPCOLOR(COLOR_VIOLET);
gfx_printf("%s", display);
}
RESETCOLOR;
if (refresh){
length = strlen(display);
for (int i = 0; i < (42 - length); i++)
gfx_printf(" ");
}
if (!(file.property & ISDIR))
if (file.property & ISDIR)
gfx_printf("\n");
else {
SWAPCOLOR(COLOR_BLUE);
gfx_printf("\a%d\e%s", file.size, sizevalues[size - 4]);
}
free(display);
}

View file

@ -66,7 +66,7 @@ void displayinfo(){
void displaygpio(){
int res;
clearscreen();
gfx_printf("Updates gpio pins ever 50ms:\nPress power to exit");
gfx_printf("Updates gpio pins every 50ms:\nPress power to exit");
msleep(200);
while (1){
msleep(10);
@ -158,7 +158,7 @@ int format(int mode){
if (mode == 0){
if (totalsectors < 83886080){
gfx_printf("%kYou seem to be running this on a <32GB SD\nNot enough free space for emummc!", COLOR_RED);
gfx_printf("%kYou seem to be running this on a <=32GB SD\nNot enough free space for emummc!", COLOR_RED);
fatalerror = true;
}
else {