Author and version no longer show for folders

This commit is contained in:
Adubbz 2018-02-22 12:05:59 +11:00
parent 482bdf54e1
commit 569778db84

View File

@ -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);
@ -140,6 +142,7 @@ static void drawEntry(menuEntry_s* me, int n, int is_active) {
snprintf(tmpstr, sizeof(tmpstr)-1, "Version: %s", me->version); snprintf(tmpstr, sizeof(tmpstr)-1, "Version: %s", me->version);
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() {