From 8012be9effd6d887e5e0a1a8bdf996e58d0cb6fa Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 22 Sep 2024 16:24:34 +0300 Subject: Move FRAMES to cpetpet.c --- configure | 1 - cpetpet.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b6b0736..a805827 100755 --- a/configure +++ b/configure @@ -36,7 +36,6 @@ echo " #define __CONFIG_H__ #define SHAREDIR \"$DESTDIR/share/cpetpet\" -#define FRAMES 10 #endif " > config.h diff --git a/cpetpet.c b/cpetpet.c index fe6234b..d106c8e 100644 --- a/cpetpet.c +++ b/cpetpet.c @@ -11,7 +11,9 @@ #include "config.h" -static char *gifs[] = { +#define FRAMES 10 + +static char *gifs[FRAMES] = { SHAREDIR "/pet0.gif", SHAREDIR "/pet1.gif", SHAREDIR "/pet2.gif", -- cgit 1.4.1