From 9e8b38ba943b339b966b1011bab899720d6305fc Mon Sep 17 00:00:00 2001 From: inmarket Date: Fri, 9 May 2014 21:25:31 +1000 Subject: Add gwinClearInit() and gwinWidgetClearInit() to clear gwin initialisation structures. Incorporate into demo's --- demos/modules/gadc/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demos/modules/gadc/main.c') diff --git a/demos/modules/gadc/main.c b/demos/modules/gadc/main.c index 7db14c82..ae508278 100644 --- a/demos/modules/gadc/main.c +++ b/demos/modules/gadc/main.c @@ -152,6 +152,8 @@ int main(void) { gwinSetDefaultFont(font); { GWindowInit wi; + + gwinClearInit(&wi); wi.show = TRUE; wi.x = wi.y = 0; wi.width = swidth-SCOPE_CX; @@ -184,6 +186,8 @@ int main(void) { /* Set up the scope window in the top right on the screen */ { GWindowInit wi; + + gwinClearInit(&wi); wi.show = TRUE; wi.x = swidth-SCOPE_CX; wi.y = 0; -- cgit v1.2.3