mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 15:13:03 +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:
parent
70ab422acc
commit
5d757e1230
13
src/help.c
13
src/help.c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user