From 52c1edc5ab582eae619066a6552b4ae0ecb4bd6f Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 11 May 2014 16:07:21 +0200 Subject: [PATCH] Improve GWIN widget demo layouting --- demos/modules/gwin/widgets/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);