1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-09 22:46:44 +02:00
This commit is contained in:
Sean Qureshi
2013-08-02 22:31:21 -07:00
4 changed files with 5 additions and 23 deletions

3
chat.c
View File

@ -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);
}