Save 8 bytes

This commit is contained in:
Armel FAUVEAU
2025-02-07 05:46:08 +01:00
parent f2f9c070a7
commit f0dc9613a1

View File

@@ -1143,10 +1143,14 @@ void UI_DisplayMenu(void)
}
// center vertically'ish
/*
if (small)
y = 3 - ((lines + 0) / 2); // untested
else
y = 2 - ((lines + 0) / 2);
*/
y = (small ? 3 : 2) - (lines / 2);
// only for SysInf
if(UI_MENU_GetCurrentMenuId() == MENU_VOL)