mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-09 22:46:44 +02:00
This commit is contained in:
3
chat.c
3
chat.c
@ -147,6 +147,7 @@ static void chat_onKey(ToxWindow* self, int key) {
|
||||
}
|
||||
|
||||
static void chat_onDraw(ToxWindow* self) {
|
||||
curs_set(1);
|
||||
int x, y;
|
||||
ChatContext* ctx = (ChatContext*) self->x;
|
||||
|
||||
@ -158,7 +159,7 @@ static void chat_onDraw(ToxWindow* self) {
|
||||
|
||||
wclear(ctx->linewin);
|
||||
mvwhline(ctx->linewin, 0, 0, '_', COLS);
|
||||
mvwprintw(ctx->linewin, 1, 0, "%s\n", ctx->line);
|
||||
mvwprintw(self->window, y-1, 0, "%s\n", ctx->line);
|
||||
|
||||
wrefresh(self->window);
|
||||
}
|
||||
|
Reference in New Issue
Block a user