Author and version no longer show for folders
This commit is contained in:
parent
482bdf54e1
commit
569778db84
@ -133,6 +133,8 @@ static void drawEntry(menuEntry_s* me, int n, int is_active) {
|
|||||||
start_y = 135;
|
start_y = 135;
|
||||||
|
|
||||||
DrawText(tahoma24, start_x + 256 + 64, start_y, MakeColor(255, 255, 255, 255), me->name);
|
DrawText(tahoma24, start_x + 256 + 64, start_y, MakeColor(255, 255, 255, 255), me->name);
|
||||||
|
|
||||||
|
if (me->type != ENTRY_TYPE_FOLDER) {
|
||||||
memset(tmpstr, 0, sizeof(tmpstr));
|
memset(tmpstr, 0, sizeof(tmpstr));
|
||||||
snprintf(tmpstr, sizeof(tmpstr)-1, "Author: %s", me->author);
|
snprintf(tmpstr, sizeof(tmpstr)-1, "Author: %s", me->author);
|
||||||
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30, MakeColor(255, 255, 255, 255), tmpstr);
|
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30, MakeColor(255, 255, 255, 255), tmpstr);
|
||||||
@ -141,6 +143,7 @@ static void drawEntry(menuEntry_s* me, int n, int is_active) {
|
|||||||
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30 + 18 + 6, MakeColor(255, 255, 255, 255), tmpstr);
|
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30 + 18 + 6, MakeColor(255, 255, 255, 255), tmpstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void menuStartup() {
|
void menuStartup() {
|
||||||
const char *path;
|
const char *path;
|
||||||
|
Loading…
Reference in New Issue
Block a user