From 386539072cd63ff36de2f07b87041c3632ad4bd7 Mon Sep 17 00:00:00 2001 From: inmarket Date: Fri, 19 Jul 2013 09:37:50 +1000 Subject: Image animation changes --- include/gwin/image.h | 6 ++++-- include/gwin/options.h | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/gwin/image.h b/include/gwin/image.h index 6f4cc289..55d086bc 100644 --- a/include/gwin/image.h +++ b/include/gwin/image.h @@ -32,8 +32,10 @@ // An image window typedef struct GImageObject { GWindowObject g; - gdispImage image; // The image itself - GTimer timer; // Timer used for animated images + gdispImage image; // The image itself + #if GWIN_NEED_IMAGE_ANIMATION + GTimer timer; // Timer used for animated images + #endif } GImageObject; #ifdef __cplusplus diff --git a/include/gwin/options.h b/include/gwin/options.h index 5de2e43b..5a90dacd 100644 --- a/include/gwin/options.h +++ b/include/gwin/options.h @@ -123,6 +123,13 @@ #ifndef GWIN_CONSOLE_USE_BASESTREAM #define GWIN_CONSOLE_USE_BASESTREAM FALSE #endif + /** + * @brief Image windows can optionally support animated images + * @details Defaults to FALSE + */ + #ifndef GWIN_NEED_IMAGE_ANIMATION + #define GWIN_NEED_IMAGE_ANIMATION FALSE + #endif /** @} */ #endif /* _GWIN_OPTIONS_H */ -- cgit v1.2.3