Update help dialog height to fit the new commands

Made the "global" and "chat" help pages fit properly in the dialog again.
I also made the logic for deciding height for the chat page consistent with the other pages.
This commit is contained in:
Pigpog 2023-03-04 17:07:15 -05:00 committed by GitHub
parent 70ab422acc
commit 5d757e1230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -433,18 +433,21 @@ void help_onKey(ToxWindow *self, wint_t key)
break;
case L'c':
height = 12;
#ifdef VIDEO
help_init_window(self, 26, 80);
height += 15;
#elif AUDIO
help_init_window(self, 21, 80);
#else
help_init_window(self, 13, 80);
height += 5;
#endif
#ifdef GAMES
height += 1;
#endif
help_init_window(self, height, 80);
self->help->type = HELP_CHAT;
break;
case L'g':
height = 23;
height = 24;
#ifdef VIDEO
height += 8;
#elif AUDIO