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,12 +133,15 @@ 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);
memset(tmpstr, 0, sizeof(tmpstr));
snprintf(tmpstr, sizeof(tmpstr)-1, "Author: %s", me->author); if (me->type != ENTRY_TYPE_FOLDER) {
DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30, MakeColor(255, 255, 255, 255), tmpstr); memset(tmpstr, 0, sizeof(tmpstr));
memset(tmpstr, 0, sizeof(tmpstr)); snprintf(tmpstr, sizeof(tmpstr)-1, "Author: %s", me->author);
snprintf(tmpstr, sizeof(tmpstr)-1, "Version: %s", me->version); 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 + 18 + 6, MakeColor(255, 255, 255, 255), tmpstr); memset(tmpstr, 0, sizeof(tmpstr));
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);
}
} }
} }