aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/checkbox.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-29 16:32:41 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-29 16:32:41 +1000
commit20ec12071dfc095223eb91888c8c72cc721e66a1 (patch)
treed8504090255b5784203009a51060341b3c8f5ab2 /src/gwin/checkbox.c
parent7f15192fe8a4fea1ff9cdd031aebf4001c523cbb (diff)
downloaduGFX-20ec12071dfc095223eb91888c8c72cc721e66a1.tar.gz
uGFX-20ec12071dfc095223eb91888c8c72cc721e66a1.tar.bz2
uGFX-20ec12071dfc095223eb91888c8c72cc721e66a1.zip
Fix text padding of a right aligned checkbox
Diffstat (limited to 'src/gwin/checkbox.c')
-rw-r--r--src/gwin/checkbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/checkbox.c b/src/gwin/checkbox.c
index 9121a55b..7a6198de 100644
--- a/src/gwin/checkbox.c
+++ b/src/gwin/checkbox.c
@@ -190,7 +190,7 @@ void gwinCheckboxDraw_CheckOnRight(GWidgetObject *gw, void *param) {
if (gw->g.flags & GCHECKBOX_FLG_CHECKED)
gdispFillArea(gw->g.x+ep+df, gw->g.y+df, ld-2*df, ld-2*df, pcol->fill);
- gdispFillStringBox(gw->g.x, gw->g.y, ep, gw->g.height, gw->text, gw->g.font, pcol->text, gw->pstyle->background, justifyRight);
+ gdispFillStringBox(gw->g.x, gw->g.y, ep-1, gw->g.height, gw->text, gw->g.font, pcol->text, gw->pstyle->background, justifyRight);
#undef gcw
}