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 /src/gwin/gwin_label.c | |
parent | 7e95acb7310d83284288a6e89a6b3fe4bf4e8668 (diff) | |
download | uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.gz uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.tar.bz2 uGFX-2ab2d77fcba42467b62f2be732cb8dc00510fe19.zip |
Change coord_t to gCoord
Diffstat (limited to 'src/gwin/gwin_label.c')
-rw-r--r-- | src/gwin/gwin_label.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gwin/gwin_label.c b/src/gwin/gwin_label.c index b522768a..d8ca1512 100644 --- a/src/gwin/gwin_label.c +++ b/src/gwin/gwin_label.c @@ -21,14 +21,14 @@ #define gw2obj ((GLabelObject *)gw) // simple: single line with no wrapping -static coord_t getwidth(const char *text, font_t font, coord_t maxwidth) { +static gCoord getwidth(const char *text, font_t font, gCoord maxwidth) { (void) maxwidth; return gdispGetStringWidth(text, font)+2; // Allow one pixel of padding on each side } // simple: single line with no wrapping -static coord_t getheight(const char *text, font_t font, coord_t maxwidth) { +static gCoord getheight(const char *text, font_t font, gCoord maxwidth) { (void) text; (void) maxwidth; @@ -117,7 +117,7 @@ void gwinLabelSetBorder(GHandle gh, gBool border) { } #if GWIN_LABEL_ATTRIBUTE - void gwinLabelSetAttribute(GHandle gh, coord_t tab, const char* attr) { + void gwinLabelSetAttribute(GHandle gh, gCoord tab, const char* attr) { // is it a valid handle? if (gh->vmt != (gwinVMT *)&labelVMT) return; @@ -130,7 +130,7 @@ void gwinLabelSetBorder(GHandle gh, gBool border) { #endif // GWIN_LABEL_ATTRIBUTE static void gwinLabelDraw(GWidgetObject *gw, justify_t justify) { - coord_t w, h; + gCoord w, h; color_t c; // is it a valid handle? |