From e7c7ad843c2081281c680e61539d716f1908c60e Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 19 Jan 2024 23:23:09 -0500 Subject: [PATCH] Looks like animation works --- include/hexagram/anim.h | 4 ++-- src/Makefile | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/hexagram/anim.h b/include/hexagram/anim.h index b30e8dc..b97dd66 100644 --- a/include/hexagram/anim.h +++ b/include/hexagram/anim.h @@ -39,13 +39,13 @@ typedef struct _hexagram_anim_stop { typedef struct _hexagram_anim { hexagram_anim_stop *stops; - size_t count, current; + size_t count; struct timeval start, now; } hexagram_anim; void hexagram_anim_init(hexagram_anim *anim); -int hexagram_anim_step(hexagram_anim *anim, cairo_t *bg, cairo_t *fg); +int hexagram_anim_step(hexagram_anim *anim); double hexagram_anim_duration(hexagram_anim *anim); diff --git a/src/Makefile b/src/Makefile index f365c88..26604fd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,16 +8,16 @@ CFLAGS += -fPIC -I$(INCLUDE_PATH) $(shell pkg-config --cflags cairo x11 librsvg LDFLAGS = $(shell pkg-config --libs cairo x11 librsvg-2.0) -lXext HEADERS = list.h dict.h hash.h can.h capture.h pcapng.h module.h \ - window.h path.h pattern.h gauge.h dial.h text.h odo.h clock.h \ - temp.h trans.h tacho.h speedo.h thermo.h fuel.h mfd.h \ - cluster.h sim.h schedule.h svg.h icon.h status.h + window.h anim.h path.h pattern.h gauge.h dial.h text.h odo.h \ + clock.h temp.h trans.h tacho.h speedo.h thermo.h fuel.h \ + mfd.h cluster.h sim.h schedule.h svg.h icon.h status.h HEADERS_LOCAL = util.h OBJS = list.o dict.o hash.o can.o capture.o pcapng.o module.o \ - window.o path.o pattern.o gauge.o dial.o text.o odo.o clock.o \ - temp.o trans.o tacho.o speedo.o thermo.o fuel.o mfd.o \ - cluster.o sim.o schedule.o svg.o icon.o status.o + window.o anim.o path.o pattern.o gauge.o dial.o text.o odo.o \ + clock.o temp.o trans.o tacho.o speedo.o thermo.o fuel.o \ + mfd.o cluster.o sim.o schedule.o svg.o icon.o status.o VERSION_MAJOR = 0 VERSION_MINOR = 0.1