mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:03:27 +01:00
small fix
This commit is contained in:
parent
2040368dd9
commit
3ddae51998
@ -494,6 +494,7 @@ static void chat_onInit(ToxWindow *self, Tox *m)
|
|||||||
ctx->history = subwin(self->window, y-3, x, 0, 0);
|
ctx->history = subwin(self->window, y-3, x, 0, 0);
|
||||||
scrollok(ctx->history, 1);
|
scrollok(ctx->history, 1);
|
||||||
ctx->linewin = subwin(self->window, 0, x, y-4, 0);
|
ctx->linewin = subwin(self->window, 0, x, y-4, 0);
|
||||||
|
wprintw(ctx->history, "\n\n");
|
||||||
print_help(ctx);
|
print_help(ctx);
|
||||||
wmove(self->window, y - CURS_Y_OFFSET, 0);
|
wmove(self->window, y - CURS_Y_OFFSET, 0);
|
||||||
}
|
}
|
||||||
@ -534,7 +535,6 @@ ToxWindow new_chat(Tox *m, int friendnum)
|
|||||||
|
|
||||||
uint8_t name[TOX_MAX_NAME_LENGTH] = {'\0'};
|
uint8_t name[TOX_MAX_NAME_LENGTH] = {'\0'};
|
||||||
tox_getname(m, friendnum, (uint8_t *) &name);
|
tox_getname(m, friendnum, (uint8_t *) &name);
|
||||||
|
|
||||||
snprintf(ret.name, sizeof(ret.name), "%s", name);
|
snprintf(ret.name, sizeof(ret.name), "%s", name);
|
||||||
|
|
||||||
ChatContext *x = calloc(1, sizeof(ChatContext));
|
ChatContext *x = calloc(1, sizeof(ChatContext));
|
||||||
|
@ -146,7 +146,6 @@ int add_window(Tox *m, ToxWindow w)
|
|||||||
windows[i] = w;
|
windows[i] = w;
|
||||||
w.onInit(&w, m);
|
w.onInit(&w, m);
|
||||||
|
|
||||||
//active_window = windows + i;
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user