From 55e7e18c4130246e96b5c0ccee380402221237b2 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 20 Jan 2024 00:43:43 -0500 Subject: [PATCH] Rename 'actionc' to 'count' --- include/hexagram/anim.h | 2 +- src/anim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hexagram/anim.h b/include/hexagram/anim.h index ca2a6ba..f081263 100644 --- a/include/hexagram/anim.h +++ b/include/hexagram/anim.h @@ -33,7 +33,7 @@ typedef struct _hexagram_anim_action { typedef struct _hexagram_anim_stop { hexagram_anim_action *actions; - size_t actionc; + size_t count; double duration; } hexagram_anim_stop; diff --git a/src/anim.c b/src/anim.c index 6184bcf..d2e7b9f 100644 --- a/src/anim.c +++ b/src/anim.c @@ -62,7 +62,7 @@ int hexagram_anim_step(hexagram_anim *anim, hexagram_anim_progress_fn *fn) { progress = (interval - offset) / anim->stops[i].duration; } - for (a=0; astops[i].actionc; a++) { + for (a=0; astops[i].count; a++) { hexagram_anim_action *action = &anim->stops[i].actions[a]; if (action->flags & HEXAGRAM_ANIM_MOVE) {