Skip to content

Commit

Permalink
Make sure letter-pacing happens right after timer set-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed May 29, 2023
1 parent b03d212 commit a3eea99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/text-scroller.cc
Expand Up @@ -303,7 +303,7 @@ int main(int argc, char *argv[]) {

// Make sure render-time delays are not influencing scroll-time
if (speed > 0) {
if (next_frame.tv_sec == 0) {
if (next_frame.tv_sec == 0 && next_frame.tv_nsec == 0) {
// First time. Start timer, but don't wait.
clock_gettime(CLOCK_MONOTONIC, &next_frame);
} else {
Expand Down

0 comments on commit a3eea99

Please sign in to comment.