[gnome-todo] timeline: Use gint64 when ticking timeline



commit 9425e9ca7344184ca840c1d836118af27391c706
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun Mar 7 11:24:43 2021 -0300

    timeline: Use gint64 when ticking timeline
    
    Otherwise we get odd overflow and warping artifacts.

 src/animation/gtd-timeline.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/animation/gtd-timeline.c b/src/animation/gtd-timeline.c
index f2dd0187..be66f339 100644
--- a/src/animation/gtd-timeline.c
+++ b/src/animation/gtd-timeline.c
@@ -216,9 +216,9 @@ gtd_timeline_do_frame (GtdTimeline *self)
     {
       /* Handle loop or stop */
       GtdTimelineDirection saved_direction = priv->direction;
-      gint elapsed_time_delta_ms = priv->delta_ms;
-      guint overflow_ms = priv->elapsed_time_ms;
-      gint end_ms;
+      gint64 overflow_ms = priv->elapsed_time_ms;
+      gint64 elapsed_time_delta_ms = priv->delta_ms;
+      gint64 end_ms;
 
       /* Update the current elapsed time in case the signal handlers
        * want to take a peek. If we clamp elapsed time, then we need


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]