Skip to content

Commit c8c52ca

Browse files
committed
Fix an off-by-one in the scrollers
Previously an empty message was being scrolled across, causing a "blip" at the bottom the display for a few seconds.
1 parent a052daa commit c8c52ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

animation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ void animation::update_scroller_message(void)
583583
scroller_state.framestamp = frame;
584584

585585
scroller_state.current_index++;
586-
if (scroller_state.current_index > scroller_state.data.array_size) {
586+
if (!(scroller_state.current_index < scroller_state.data.array_size)) {
587587
scroller_state.current_index = 0;
588588
}
589589
}

0 commit comments

Comments
 (0)