aboutsummaryrefslogtreecommitdiff
path: root/src/animate.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-17 15:12:45 +0100
committerFederico Angelilli <code@fedang.net>2024-03-17 15:12:45 +0100
commit6e6992ec09edf79ef2cdcaf249e31809cf7d3145 (patch)
tree407b19699b826967ce85f29b83252c6fa13917ad /src/animate.h
parentabacdaccb6a1ef55bd85b66e10caaa217458400b (diff)
Add millis macro and refactor
Diffstat (limited to 'src/animate.h')
-rw-r--r--src/animate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/animate.h b/src/animate.h
index d153cda..2323017 100644
--- a/src/animate.h
+++ b/src/animate.h
@@ -5,6 +5,8 @@
#include "draw.h"
+#define MILLIS(n) ((n) * G_TIME_SPAN_MILLISECOND)
+
typedef struct Animation Animation;
typedef struct State State;