diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:54:19 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 10:54:19 +1000 |
commit | 2ab2d77fcba42467b62f2be732cb8dc00510fe19 (patch) | |
tree | 8dbd616faa116a2946ad47c62c20d4a34fb749b2 /demos/applications/combo/main.c | |
parent | 7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (diff) | |
download | uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.gz uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.bz2 uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.zip |
Change coord_t to gCoord
Diffstat (limited to 'demos/applications/combo/main.c')
-rw-r--r-- | demos/applications/combo/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/applications/combo/main.c b/demos/applications/combo/main.c index 05cdb643..1e7c6584 100644 --- a/demos/applications/combo/main.c +++ b/demos/applications/combo/main.c @@ -115,14 +115,14 @@ static void nextline(GWidgetInit *pwi) { pwi->g.y += pwi->g.height+1; } -static void setbtntext(GWidgetInit *pwi, coord_t maxwidth, char *txt) { +static void setbtntext(GWidgetInit *pwi, gCoord maxwidth, char *txt) { pwi->text = txt; pwi->g.width = gdispGetStringWidth(pwi->text, font) + BUTTON_PADDING; if (pwi->g.x + pwi->g.width > maxwidth) nextline(pwi); } -static void nextpos(GWidgetInit *pwi, coord_t maxwidth, coord_t nextwidth) { +static void nextpos(GWidgetInit *pwi, gCoord maxwidth, gCoord nextwidth) { pwi->g.x += pwi->g.width+1; pwi->g.width = nextwidth; if (pwi->g.x + nextwidth > maxwidth) @@ -138,7 +138,7 @@ static void nextpos(GWidgetInit *pwi, coord_t maxwidth, coord_t nextwidth) { */ static void createWidgets(void) { GWidgetInit wi; - coord_t border, pagewidth; + gCoord border, pagewidth; gwinWidgetClearInit(&wi); |