diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-05-11 16:07:21 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-05-11 16:07:21 +0200 |
commit | 52c1edc5ab582eae619066a6552b4ae0ecb4bd6f (patch) | |
tree | 416cc96e96dc1e484ce44d5851fa33c0dc124b93 /demos/modules/gwin/widgets | |
parent | e8f0f8faa8d5f1b74dd6a8c9ab976798ea8b84ae (diff) | |
download | uGFX-52c1edc5ab582eae619066a6552b4ae0ecb4bd6f.tar.gz uGFX-52c1edc5ab582eae619066a6552b4ae0ecb4bd6f.tar.bz2 uGFX-52c1edc5ab582eae619066a6552b4ae0ecb4bd6f.zip |
Improve GWIN widget demo layouting
Diffstat (limited to 'demos/modules/gwin/widgets')
-rw-r--r-- | demos/modules/gwin/widgets/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/modules/gwin/widgets/main.c b/demos/modules/gwin/widgets/main.c index 376ad3bd..cb97814e 100644 --- a/demos/modules/gwin/widgets/main.c +++ b/demos/modules/gwin/widgets/main.c @@ -157,7 +157,7 @@ static void createWidgets(void) { // Create the Pages wi.g.show = FALSE; wi.g.x = 5; wi.g.y += 5; - wi.g.width = ScrWidth/2 - 10; wi.g.height = ScrHeight-wi.g.y-5; + wi.g.width = ScrWidth/2 - 5; wi.g.height = ScrHeight-wi.g.y-5; ghPgButtons = gwinContainerCreate(0, &wi, GWIN_CONTAINER_BORDER); ghPgSliders = gwinContainerCreate(0, &wi, GWIN_CONTAINER_BORDER); ghPgCheckboxes = gwinContainerCreate(0, &wi, GWIN_CONTAINER_BORDER); @@ -170,6 +170,7 @@ static void createWidgets(void) { // Console - we apply some special colors before making it visible wi.g.x = ScrWidth/2+1; + wi.g.width = ScrWidth/2 - 5; ghConsole = gwinConsoleCreate(0, &wi.g); gwinSetColor(ghConsole, Yellow); gwinSetBgColor(ghConsole, Black); |