From ecaf8b83f8227724e9f862a0a8f64e6004a63d56 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 20 Aug 2014 12:18:27 +1000 Subject: Create a generic GWIN event. The frame now sends a GEVENT_GWIN_CLOSE event on closing. Unfortunately some gwin events have had a field renamed in order to generalise the structure. Demo's updated to match. --- demos/modules/gwin/button/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/modules/gwin/button/main.c') diff --git a/demos/modules/gwin/button/main.c b/demos/modules/gwin/button/main.c index 156e929e..15e8e5a7 100644 --- a/demos/modules/gwin/button/main.c +++ b/demos/modules/gwin/button/main.c @@ -83,7 +83,7 @@ int main(void) { switch(pe->type) { case GEVENT_GWIN_BUTTON: - if (((GEventGWinButton*)pe)->button == ghButton1) { + if (((GEventGWinButton*)pe)->gwin == ghButton1) { // Our button has been pressed if (++which >= sizeof(orients)/sizeof(orients[0])) which = 0; -- cgit v1.2.3