1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 07:36:44 +02:00

a small fixes

This commit is contained in:
Jfreegman
2013-11-26 17:39:11 -05:00
parent 0a24137a58
commit 8de666a349
6 changed files with 20 additions and 17 deletions

View File

@ -263,10 +263,11 @@ ToxWindow *init_windows(Tox *mToAssign)
return prompt;
}
#define TAB_BLINKRATE 30
static void draw_bar(void)
{
static int odd = 0;
int blinkrate = 30;
attron(COLOR_PAIR(BLUE));
mvhline(LINES - 2, 0, '_', COLS);
@ -290,15 +291,15 @@ static void draw_bar(void)
attron(A_BOLD);
}
odd = (odd + 1) % blinkrate;
odd = (odd + 1) % TAB_BLINKRATE;
if (windows[i].blink && (odd < (blinkrate / 2)))
if (windows[i].blink && (odd < (TAB_BLINKRATE / 2)))
attron(COLOR_PAIR(RED));
clrtoeol();
printw(" [%s]", windows[i].name);
if (windows[i].blink && (odd < (blinkrate / 2)))
if (windows[i].blink && (odd < (TAB_BLINKRATE / 2)))
attroff(COLOR_PAIR(RED));
if (windows + i == active_window) {