From 6e6992ec09edf79ef2cdcaf249e31809cf7d3145 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 17 Mar 2024 15:12:45 +0100 Subject: Add millis macro and refactor --- src/animate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/animate.h') 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; -- cgit v1.2.3