mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 02:53:01 +01:00
use touchwin instead of mvwin and this doesn't need its own function
This commit is contained in:
parent
7da72b79ef
commit
49a10e5a40
@ -19,8 +19,6 @@
|
||||
#include <signal.h>
|
||||
#include <locale.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <direct.h>
|
||||
|
@ -279,20 +279,16 @@ static void draw_bar()
|
||||
refresh();
|
||||
}
|
||||
|
||||
void prepare_window(WINDOW *w)
|
||||
{
|
||||
mvwin(w, 0, 0);
|
||||
#ifndef WIN32
|
||||
wresize(w, LINES - 2, COLS);
|
||||
#endif
|
||||
}
|
||||
|
||||
void draw_active_window(Tox *m)
|
||||
{
|
||||
ToxWindow *a = active_window;
|
||||
wint_t ch = 0;
|
||||
|
||||
prepare_window(a->window);
|
||||
touchwin(a->window);
|
||||
#ifndef WIN32
|
||||
wresize(a->window, LINES - 2, COLS);
|
||||
#endif
|
||||
|
||||
a->blink = false;
|
||||
draw_bar();
|
||||
a->onDraw(a, m);
|
||||
|
Loading…
Reference in New Issue
Block a user