Fill left options column first

This commit is contained in:
CornerPin 2024-10-23 02:11:39 +03:00
parent 1853ef1a3a
commit eb7fb558e6
No known key found for this signature in database
GPG Key ID: 8F12C09AAF862530

View File

@ -239,7 +239,7 @@ static int MenuOptionsScreen_AddButton(struct MenuOptionsScreen* s, const char*
static void MenuOptionsScreen_EndButtons(struct MenuOptionsScreen* s, Widget_LeftClick backClick) {
struct ButtonWidget* btn;
int i, col, row, half = s->numButtons / 2;
int i, col, row, half = (s->numButtons + 1) / 2;
int begRow = 2 - half;
if (s->numButtons & 1) begRow--;
begRow = max(-3, begRow);