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_container.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_container.c')
-rw-r--r-- | src/gwin/gwin_container.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gwin/gwin_container.c b/src/gwin/gwin_container.c index f680f6fb..9b1bd3c4 100644 --- a/src/gwin/gwin_container.c +++ b/src/gwin/gwin_container.c @@ -59,13 +59,13 @@ GHandle gwinGetSibling(GHandle gh) { return 0; } -coord_t gwinGetInnerWidth(GHandle gh) { +gCoord gwinGetInnerWidth(GHandle gh) { if (!(gh->flags & GWIN_FLG_CONTAINER)) return 0; return gh->width - ((const gcontainerVMT *)gh->vmt)->LeftBorder(gh) - ((const gcontainerVMT *)gh->vmt)->RightBorder(gh); } -coord_t gwinGetInnerHeight(GHandle gh) { +gCoord gwinGetInnerHeight(GHandle gh) { if (!(gh->flags & GWIN_FLG_CONTAINER)) return 0; return gh->height - ((const gcontainerVMT *)gh->vmt)->TopBorder(gh) - ((const gcontainerVMT *)gh->vmt)->BottomBorder(gh); @@ -92,7 +92,7 @@ coord_t gwinGetInnerHeight(GHandle gh) { #define BORDER_WIDTH 2 -static coord_t ContainerBorderSize(GHandle gh) { return (gh->flags & GWIN_CONTAINER_BORDER) ? BORDER_WIDTH : 0; } +static gCoord ContainerBorderSize(GHandle gh) { return (gh->flags & GWIN_CONTAINER_BORDER) ? BORDER_WIDTH : 0; } // The container VMT table static const gcontainerVMT containerVMT = { @@ -169,7 +169,7 @@ void gwinContainerDraw_Std(GWidgetObject *gw, void *param) { #if GDISP_NEED_IMAGE void gwinContainerDraw_Image(GWidgetObject *gw, void *param) { #define gi ((gdispImage *)param) - coord_t x, y, iw, ih, mx, my; + gCoord x, y, iw, ih, mx, my; if (gw->g.vmt != (gwinVMT *)&containerVMT) return; |