aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/modules/gwin/imagebox/main.c3
-rw-r--r--demos/modules/gwin/label/main.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/demos/modules/gwin/imagebox/main.c b/demos/modules/gwin/imagebox/main.c
index d8ebbe73..4b864f00 100644
--- a/demos/modules/gwin/imagebox/main.c
+++ b/demos/modules/gwin/imagebox/main.c
@@ -35,8 +35,9 @@ GHandle ghImage1;
static void createWidgets(void) {
GWidgetInit wi;
-
+
// Apply some default values for GWIN
+ gwinWidgetClearInit(&wi);
wi.g.show = TRUE;
// create the first image widget
diff --git a/demos/modules/gwin/label/main.c b/demos/modules/gwin/label/main.c
index 918f2787..aab9cd76 100644
--- a/demos/modules/gwin/label/main.c
+++ b/demos/modules/gwin/label/main.c
@@ -36,9 +36,7 @@ static void createWidgets(void) {
GWidgetInit wi;
// Apply some default values for GWIN
- wi.customDraw = 0;
- wi.customParam = 0;
- wi.customStyle = 0;
+ gwinWidgetClearInit(&wi);
wi.g.show = TRUE;
// Create the IP label