1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 15:23:02 +01:00

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

View File

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