diff options
author | Tibo Clausen <tibo.clausen@gmail.com> | 2018-10-01 15:51:36 +0200 |
---|---|---|
committer | Tibo Clausen <tibo.clausen@gmail.com> | 2018-10-01 15:51:36 +0200 |
commit | 82287d168fc7544b0cd95b135eb59eea5d084f3b (patch) | |
tree | 5f7cd72afd293b312e0606699a1cb2293415979f /src/gwin/gwin_label.c | |
parent | 3486e475796b1df79b46dd34119ea72ed74be732 (diff) | |
download | uGFX-82287d168fc7544b0cd95b135eb59eea5d084f3b.tar.gz uGFX-82287d168fc7544b0cd95b135eb59eea5d084f3b.tar.bz2 uGFX-82287d168fc7544b0cd95b135eb59eea5d084f3b.zip |
Change gwinLabelDraw to gwinLabelDrawJustified
Diffstat (limited to 'src/gwin/gwin_label.c')
-rw-r--r-- | src/gwin/gwin_label.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gwin/gwin_label.c b/src/gwin/gwin_label.c index ff70fdde..c34b1ea7 100644 --- a/src/gwin/gwin_label.c +++ b/src/gwin/gwin_label.c @@ -99,10 +99,12 @@ void gwinLabelSetBorder(GHandle gh, gBool border) { } #endif // GWIN_LABEL_ATTRIBUTE -static void gwinLabelDraw(GWidgetObject *gw, gJustify justify) { +void gwinLabelDrawJustified(GWidgetObject *gw, void *param) { gCoord w, h; gColor c; + gJustify justify = (gJustify)param; + // is it a valid handle? if (gw->g.vmt != (gwinVMT *)&labelVMT) return; @@ -129,19 +131,19 @@ static void gwinLabelDraw(GWidgetObject *gw, gJustify justify) { void gwinLabelDrawJustifiedLeft(GWidgetObject *gw, void *param) { (void)param; - gwinLabelDraw(gw, gJustifyLeft); + gwinLabelDrawJustified(gw, (void *)gJustifyLeft); } void gwinLabelDrawJustifiedRight(GWidgetObject *gw, void *param) { (void)param; - gwinLabelDraw(gw, gJustifyRight); + gwinLabelDrawJustified(gw, (void *)gJustifyRight); } void gwinLabelDrawJustifiedCenter(GWidgetObject *gw, void *param) { (void)param; - gwinLabelDraw(gw, gJustifyCenter); + gwinLabelDrawJustified(gw, (void *)gJustifyCenter); } #undef gh2obj |