aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
diff options
context:
space:
mode:
Diffstat (limited to 'include/gwin')
-rw-r--r--include/gwin/image.h6
-rw-r--r--include/gwin/options.h7
2 files changed, 11 insertions, 2 deletions
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 */