diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-16 20:20:40 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-16 20:20:40 +0100 |
commit | bdb7cce4d563250f567dac299c4cab25d01bf329 (patch) | |
tree | 8e7a336198cabbe083b273209d5f621c9b44a37f /src/display.h | |
parent | a7552770f8d98f8993c56d592a59b9963eb6e51f (diff) |
Fix occasional lag when switching animations
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h index fd91994..1bf5758 100644 --- a/src/display.h +++ b/src/display.h @@ -88,6 +88,13 @@ class Display { animation_t *current_anim; /** + * Internal display update counter. Incremented by multiplex(). + * update() is called (and the counter reset) whenever + * update_cnt == need_update. + */ + uint8_t update_cnt; + + /** * Set to a true value by multiplex() if an update (that is, * a scroll step or a new frame) is needed. Checked and reset to * false by update(). |