mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
commit
b16906d5e4
|
@ -123,8 +123,7 @@ static void chat_onStatusChange(ToxWindow *self, int num, uint8_t *status, uint1
|
||||||
|
|
||||||
status[len - 1] = '\0';
|
status[len - 1] = '\0';
|
||||||
fix_name(status);
|
fix_name(status);
|
||||||
snprintf(self->title, sizeof(self->title), "[%s (%d)]", status, num);
|
|
||||||
|
|
||||||
wattron(ctx->history, COLOR_PAIR(3));
|
wattron(ctx->history, COLOR_PAIR(3));
|
||||||
wprintw(ctx->history, "* Your partner changed status to '%s'\n", status);
|
wprintw(ctx->history, "* Your partner changed status to '%s'\n", status);
|
||||||
wattroff(ctx->history, COLOR_PAIR(3));
|
wattroff(ctx->history, COLOR_PAIR(3));
|
||||||
|
|
|
@ -197,6 +197,7 @@ static void draw_bar()
|
||||||
if (windows[i].blink && (odd < (blinkrate / 2)))
|
if (windows[i].blink && (odd < (blinkrate / 2)))
|
||||||
attron(COLOR_PAIR(3));
|
attron(COLOR_PAIR(3));
|
||||||
|
|
||||||
|
clrtoeol();
|
||||||
printw(" %s", windows[i].title);
|
printw(" %s", windows[i].title);
|
||||||
|
|
||||||
if (windows[i].blink && (odd < (blinkrate / 2)))
|
if (windows[i].blink && (odd < (blinkrate / 2)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user