mirror of
https://github.com/st3fan/ewm.git
synced 2024-06-04 02:29:28 +00:00
Fixes #179 - Blinking in tty is irregular
This commit is contained in:
parent
d2a8386f72
commit
6e32724ffa
|
@ -139,7 +139,7 @@ void ewm_tty_refresh(struct ewm_tty_t *tty, uint32_t phase, uint32_t fps) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (phase != 0 && fps != 0) {
|
if (fps != 0) {
|
||||||
if ((phase % (fps / 4)) == 0) {
|
if ((phase % (fps / 4)) == 0) {
|
||||||
tty->screen_cursor_blink = !tty->screen_cursor_blink;
|
tty->screen_cursor_blink = !tty->screen_cursor_blink;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user