diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:26:17 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:26:17 +1000 |
commit | a25c56f8edab4c3c88a5c034196de7b1bca409ee (patch) | |
tree | 44cf403f470e9b7ed5b8f27bd80cb93ec5efdd5d /demos/modules | |
parent | 0219daa6ebfda67dad62339d98a7cd1aed2919a3 (diff) | |
download | uGFX-a25c56f8edab4c3c88a5c034196de7b1bca409ee.tar.gz uGFX-a25c56f8edab4c3c88a5c034196de7b1bca409ee.tar.bz2 uGFX-a25c56f8edab4c3c88a5c034196de7b1bca409ee.zip |
More freeflowing of the widgets demo for smaller displays.
Diffstat (limited to 'demos/modules')
-rw-r--r-- | demos/modules/gwin/widgets/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/modules/gwin/widgets/main.c b/demos/modules/gwin/widgets/main.c index a8f6c240..52dfbfc1 100644 --- a/demos/modules/gwin/widgets/main.c +++ b/demos/modules/gwin/widgets/main.c @@ -96,7 +96,7 @@ static gdispImage imgYesNo; #define LABEL_HEIGHT 40 #define BUTTON_WIDTH 50 #define BUTTON_HEIGHT 30 -#define LIST_WIDTH 100 +#define LIST_WIDTH 75 #define LIST_HEIGHT 80 #define SLIDER_WIDTH 20 #define CHECKBOX_WIDTH 80 @@ -225,14 +225,14 @@ static void createWidgets(void) { wi.g.width = RADIO_WIDTH; wi.g.height = RADIO_HEIGHT; wi.g.y = 0; wi.g.x = 0; wi.text = "Yes"; ghRadio1 = gwinRadioCreate(0, &wi, GROUP_YESNO); - wi.g.x += wi.g.width; wi.text = "No"; + wi.g.x += wi.g.width; wi.text = "No"; if (wi.g.x + wi.g.width > gwinGetInnerWidth(ghPgRadios)) { wi.g.x = 0; wi.g.y += RADIO_HEIGHT; } ghRadio2 = gwinRadioCreate(0, &wi, GROUP_YESNO); wi.g.width = COLOR_WIDTH; wi.g.y += RADIO_HEIGHT+5; - wi.g.x = 2; wi.text = "Black"; + wi.g.x = 0; wi.text = "Black"; ghRadioBlack = gwinRadioCreate(0, &wi, GROUP_COLORS); - wi.g.x += wi.g.width; wi.text = "White"; + wi.g.x += wi.g.width; wi.text = "White"; if (wi.g.x + wi.g.width > gwinGetInnerWidth(ghPgRadios)) { wi.g.x = 0; wi.g.y += RADIO_HEIGHT; } ghRadioWhite = gwinRadioCreate(0, &wi, GROUP_COLORS); - wi.g.x += wi.g.width; wi.text = "Yellow"; + wi.g.x += wi.g.width; wi.text = "Yellow"; if (wi.g.x + wi.g.width > gwinGetInnerWidth(ghPgRadios)) { wi.g.x = 0; wi.g.y += RADIO_HEIGHT; } ghRadioYellow = gwinRadioCreate(0, &wi, GROUP_COLORS); gwinRadioPress(ghRadioWhite); |