Looks like animation works

This commit is contained in:
XANTRONIX Development 2024-01-19 23:23:09 -05:00
parent a0e19b3ce4
commit e7c7ad843c
2 changed files with 8 additions and 8 deletions

View file

@ -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);

View file

@ -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