diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-18 19:54:02 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-18 19:54:02 +0100 |
commit | e8162f007f7eea198555428c6948479222496f8b (patch) | |
tree | db9c2fe081446ae5f8712e865fd43b37ae204d85 /src | |
parent | 62ca957c6e3f20819cb4cd179bd3787f94f07af1 (diff) |
fix bug with direction==1 and length > 128
Diffstat (limited to 'src')
-rw-r--r-- | src/display.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.cc b/src/display.cc index 1fbe190..dfe4c1f 100644 --- a/src/display.cc +++ b/src/display.cc @@ -191,7 +191,7 @@ void Display::update() { else if (current_anim->length <= 128) str_pos = current_anim->length - 1; else - str_pos = 127; + str_pos = (current_anim->length - 1) % 128; status = RUNNING; update_threshold = current_anim->speed; } |