aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-19 09:37:50 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-19 09:37:50 +1000
commit386539072cd63ff36de2f07b87041c3632ad4bd7 (patch)
tree7406b879a76bd8ffb45709195708aa080d93d9c7 /include
parentcb28adcfba206bd375d0d16e90c247b7bf8068fb (diff)
downloaduGFX-386539072cd63ff36de2f07b87041c3632ad4bd7.tar.gz
uGFX-386539072cd63ff36de2f07b87041c3632ad4bd7.tar.bz2
uGFX-386539072cd63ff36de2f07b87041c3632ad4bd7.zip
Image animation changes
Diffstat (limited to 'include')
-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 */