Optimise screen scroll a bit, Edit display of filesizes

This commit is contained in:
Such Meme, Many Skill
2020-04-23 14:40:55 +02:00
parent 4c4a6511f3
commit bd99e2a138
7 changed files with 28 additions and 7 deletions

View File

@@ -115,8 +115,13 @@ void gfx_printandclear(char *in, int length){
gfx_con_getpos(&x, &y);
RESETCOLOR;
/*
for (int i = (703 - x) / 16; i > 0; i--)
gfx_printf(" ");
*/
gfx_boxGrey(x, y, 703, y + 16, 0x1B);
gfx_con_setpos(x, y);

View File

@@ -53,7 +53,10 @@ void _printentry(menu_entry entry, bool highlighted, bool refresh){
else {
SWAPCOLOR(COLOR_BLUE);
SWAPBGCOLOR(COLOR_DEFAULT);
gfx_printf("\a%d\e%s", entry.storage, gfx_file_size_names[size - 4]);
gfx_printf("\a%4d", entry.storage);
gfx_con.fntsz = 8;
gfx_printf("\n\e%s\n", gfx_file_size_names[size - 4]);
gfx_con.fntsz = 16;
}
}