summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-03-18 19:54:02 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-03-18 19:54:02 +0100
commite8162f007f7eea198555428c6948479222496f8b (patch)
treedb9c2fe081446ae5f8712e865fd43b37ae204d85
parent62ca957c6e3f20819cb4cd179bd3787f94f07af1 (diff)
fix bug with direction==1 and length > 128
-rw-r--r--src/display.cc2
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;
}