aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-02-07 14:08:39 +1000
committerinmarket <andrewh@inmarket.com.au>2014-02-07 14:08:39 +1000
commit010e0f0d626b0f03cec9e8dd876762acb38fafc3 (patch)
treeaa9ae83251d2afe98c15e70b02e3b7fe05e93c3b /demos/modules/gwin
parentbd4827922708efc85c878ebd17ca6a8c88bc75b5 (diff)
downloaduGFX-010e0f0d626b0f03cec9e8dd876762acb38fafc3.tar.gz
uGFX-010e0f0d626b0f03cec9e8dd876762acb38fafc3.tar.bz2
uGFX-010e0f0d626b0f03cec9e8dd876762acb38fafc3.zip
Update demo's with images in them
Diffstat (limited to 'demos/modules/gwin')
-rw-r--r--demos/modules/gwin/widgets/gfxconf.h4
-rw-r--r--demos/modules/gwin/widgets/main.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/demos/modules/gwin/widgets/gfxconf.h b/demos/modules/gwin/widgets/gfxconf.h
index b22af659..b536de4c 100644
--- a/demos/modules/gwin/widgets/gfxconf.h
+++ b/demos/modules/gwin/widgets/gfxconf.h
@@ -79,6 +79,10 @@
#define GWIN_NEED_RADIO TRUE
#define GWIN_NEED_LIST TRUE
+/* Features for the GFILE subsystem. */
+#define GFX_USE_GFILE TRUE
+#define GFILE_NEED_MEMFS TRUE
+
/* Features for the GINPUT subsystem. */
#define GINPUT_NEED_MOUSE TRUE
diff --git a/demos/modules/gwin/widgets/main.c b/demos/modules/gwin/widgets/main.c
index af2926d7..80c39dd9 100644
--- a/demos/modules/gwin/widgets/main.c
+++ b/demos/modules/gwin/widgets/main.c
@@ -184,8 +184,7 @@ static void createWidgets(void) {
wi.g.x = 0+2*(LIST_WIDTH+1); wi.text = "L3"; ghList3 = gwinListCreate(0, &wi, TRUE);
gwinListAddItem(ghList3, "Item 0", FALSE); gwinListAddItem(ghList3, "Item 1", FALSE);
gwinListAddItem(ghList3, "Item 2", FALSE); gwinListAddItem(ghList3, "Item 3", FALSE);
- gdispImageSetMemoryReader(&imgYesNo, image_yesno);
- gdispImageOpen(&imgYesNo);
+ gdispImageOpenMemory(&imgYesNo, image_yesno);
gwinListItemSetImage(ghList3, 1, &imgYesNo);
gwinListItemSetImage(ghList3, 3, &imgYesNo);