diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-14 20:02:28 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-14 20:02:28 +0200 |
commit | 38a2a44b3d27ca29019cd0d75e60233ee9188c71 (patch) | |
tree | 6cd0e65ba5ce5b0884d5cd4085795e347b5fa509 /demos/modules/gwin/basic/main.c | |
parent | b7e6967886a25277af53e04ce6942b715b538644 (diff) | |
parent | c5ec72027787c9cd5f5b36a46eb55f03fd95d894 (diff) | |
download | uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.tar.gz uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.tar.bz2 uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.zip |
Merge branch 'GWIN'
Diffstat (limited to 'demos/modules/gwin/basic/main.c')
-rw-r--r-- | demos/modules/gwin/basic/main.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/demos/modules/gwin/basic/main.c b/demos/modules/gwin/basic/main.c index 5dc1bab7..c46e6969 100644 --- a/demos/modules/gwin/basic/main.c +++ b/demos/modules/gwin/basic/main.c @@ -40,8 +40,14 @@ int main(void) { gdispClear(Lime); /* Create two windows */ - GW1 = gwinCreateWindow(NULL, 20, 10, 200, 150); - GW2 = gwinCreateWindow(NULL, 50, 190, 150, 100); + { + GWindowInit wi; + + wi.show = TRUE; wi.x = 20; wi.y = 10; wi.width = 200; wi.height = 150; + GW1 = gwinWindowCreate(NULL, &wi); + wi.show = TRUE; wi.x = 50; wi.y = 190; wi.width = 150; wi.height = 100; + GW2 = gwinWindowCreate(NULL, &wi); + } /* Set fore- and background colors for both windows */ gwinSetColor(GW1, Black); @@ -53,9 +59,9 @@ int main(void) { gwinClear(GW1); gwinClear(GW2); - gwinDrawLine (GW1, 5, 30, 150, 110); + gwinDrawLine(GW1, 5, 30, 150, 110); for(i=5, j=0; i < 200 && j < 150; i+=3, j+=i/20) - gwinDrawPixel (GW1, i, j); + gwinDrawPixel(GW1, i, j); /* * Draw two filled circles at the same coordinate |