aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/images_animated/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gdisp/images_animated/main.c')
-rw-r--r--demos/modules/gdisp/images_animated/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/modules/gdisp/images_animated/main.c b/demos/modules/gdisp/images_animated/main.c
index 039cf584..a50e593f 100644
--- a/demos/modules/gdisp/images_animated/main.c
+++ b/demos/modules/gdisp/images_animated/main.c
@@ -36,7 +36,7 @@
* The ROMFS uses the file "romfs_files.h" to describe the set of files in the ROMFS.
*/
-#define USE_IMAGE_CACHE FALSE // Only if you want to get performance at the expense of RAM
+#define USE_IMAGE_CACHE GFXOFF // Only if you want to get performance at the expense of RAM
#define MY_BG_COLOR RGB2COLOR(220, 220, 255) // Pale blue so we can see the transparent parts
static gdispImage myImage;
@@ -85,21 +85,21 @@ int main(void) {
gdispImageCache(&myImage);
#endif
if (gdispImageDraw(&myImage, 0, 0, myImage.width, myImage.height, 0, 0) != GDISP_IMAGE_ERR_OK) {
- SHOW_ERROR(Orange);
+ SHOW_ERROR(GFX_ORANGE);
break;
}
delay = gdispImageNext(&myImage);
if (delay == TIME_INFINITE) {
- SHOW_ERROR(Green);
+ SHOW_ERROR(GFX_GREEN);
break;
}
- SHOW_ERROR(Yellow);
+ SHOW_ERROR(GFX_YELLOW);
if (delay != TIME_IMMEDIATE)
gfxSleepMilliseconds(delay);
}
gdispImageClose(&myImage);
} else
- SHOW_ERROR(Red);
+ SHOW_ERROR(GFX_RED);
while(1) {
gfxSleepMilliseconds(1000);