1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-06 19:16:35 +01:00

Per-call pending status and state handling

* Proper handling of incoming video calls.
* Add command /vcall for initiating video calls
* Add command /res command to set video resolution
This commit is contained in:
zugz (tox)
2020-04-14 00:00:00 +00:00
parent 7dead5ec96
commit 142ce642f0
10 changed files with 547 additions and 502 deletions

View File

@@ -259,7 +259,9 @@ static void help_draw_chat(ToxWindow *self)
wattron(win, A_BOLD);
wprintw(win, "\n Video:\n");
wattroff(win, A_BOLD);
wprintw(win, " /video : Toggle video call\n");
wprintw(win, " /res <width> <height> : Set video resolution\n");
wprintw(win, " /vcall : Video call\n");
wprintw(win, " /video : Toggle video in call\n");
#endif /* VIDEO */
help_draw_bottom_menu(win);
@@ -375,7 +377,7 @@ void help_onKey(ToxWindow *self, wint_t key)
case L'c':
#ifdef VIDEO
help_init_window(self, 23, 80);
help_init_window(self, 25, 80);
#elif AUDIO
help_init_window(self, 20, 80);
#else