From a0e19b3ce4e2e1f433fbc0723234ddd1c6a40708 Mon Sep 17 00:00:00 2001
From: XANTRONIX Development <dev@xantronix.com>
Date: Fri, 19 Jan 2024 23:22:56 -0500
Subject: [PATCH] Good, good

---
 src/anim.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/anim.c b/src/anim.c
index c7c225e..70103e8 100644
--- a/src/anim.c
+++ b/src/anim.c
@@ -4,8 +4,6 @@
 #include <hexagram/anim.h>
 
 void hexagram_anim_init(hexagram_anim *anim) {
-    anim->current = 0;
-
     gettimeofday(&anim->start, NULL);
 }
 
@@ -28,7 +26,7 @@ static inline size_t stop_index(hexagram_anim *anim, double offset) {
     return 0;
 }
 
-int hexagram_anim_step(hexagram_anim *anim, cairo_t *bg, cairo_t *fg) {
+int hexagram_anim_step(hexagram_anim *anim) {
     struct timeval tv;
     double offset = 0.0, interval, progress;
     size_t i, a;
@@ -48,7 +46,7 @@ int hexagram_anim_step(hexagram_anim *anim, cairo_t *bg, cairo_t *fg) {
             continue;
         }
 
-        if (interval < offset + duration) {
+        if (interval <= offset + duration) {
             break;
         }