Looks like animation works
This commit is contained in:
parent
a0e19b3ce4
commit
e7c7ad843c
2 changed files with 8 additions and 8 deletions
|
@ -39,13 +39,13 @@ typedef struct _hexagram_anim_stop {
|
||||||
|
|
||||||
typedef struct _hexagram_anim {
|
typedef struct _hexagram_anim {
|
||||||
hexagram_anim_stop *stops;
|
hexagram_anim_stop *stops;
|
||||||
size_t count, current;
|
size_t count;
|
||||||
struct timeval start, now;
|
struct timeval start, now;
|
||||||
} hexagram_anim;
|
} hexagram_anim;
|
||||||
|
|
||||||
void hexagram_anim_init(hexagram_anim *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);
|
double hexagram_anim_duration(hexagram_anim *anim);
|
||||||
|
|
||||||
|
|
12
src/Makefile
12
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
|
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 \
|
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 \
|
window.h anim.h path.h pattern.h gauge.h dial.h text.h odo.h \
|
||||||
temp.h trans.h tacho.h speedo.h thermo.h fuel.h mfd.h \
|
clock.h temp.h trans.h tacho.h speedo.h thermo.h fuel.h \
|
||||||
cluster.h sim.h schedule.h svg.h icon.h status.h
|
mfd.h cluster.h sim.h schedule.h svg.h icon.h status.h
|
||||||
|
|
||||||
HEADERS_LOCAL = util.h
|
HEADERS_LOCAL = util.h
|
||||||
|
|
||||||
OBJS = list.o dict.o hash.o can.o capture.o pcapng.o module.o \
|
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 \
|
window.o anim.o path.o pattern.o gauge.o dial.o text.o odo.o \
|
||||||
temp.o trans.o tacho.o speedo.o thermo.o fuel.o mfd.o \
|
clock.o temp.o trans.o tacho.o speedo.o thermo.o fuel.o \
|
||||||
cluster.o sim.o schedule.o svg.o icon.o status.o
|
mfd.o cluster.o sim.o schedule.o svg.o icon.o status.o
|
||||||
|
|
||||||
VERSION_MAJOR = 0
|
VERSION_MAJOR = 0
|
||||||
VERSION_MINOR = 0.1
|
VERSION_MINOR = 0.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue