aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2016-11-24 16:48:08 +1000
committerinmarket <inmarket@ugfx.org>2016-11-24 16:48:08 +1000
commitd4adcdb017b413a1cd93cf8a29ddc7c4bb880752 (patch)
treeceee18879becf4298470c4869c24ba426f1de628 /src
parent6c7b3716b3c7f63c6c946d63aca8d8e09b67b9cb (diff)
downloaduGFX-d4adcdb017b413a1cd93cf8a29ddc7c4bb880752.tar.gz
uGFX-d4adcdb017b413a1cd93cf8a29ddc7c4bb880752.tar.bz2
uGFX-d4adcdb017b413a1cd93cf8a29ddc7c4bb880752.zip
Properly fix the problem causing the compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwin_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c
index 9a203aca..476ee6ba 100644
--- a/src/gwin/gwin_widget.c
+++ b/src/gwin/gwin_widget.c
@@ -311,14 +311,14 @@ static void gwidgetEvent(void *param, GEvent *pe) {
}
void _gwidgetDrawFocusRect(GWidgetObject *gx, coord_t x, coord_t y, coord_t cx, coord_t cy) {
- uint16_t i;
+ coord_t i;
// Don't do anything if we don't have the focus
if (&gx->g != _widgetInFocus)
return;
// Use the very simplest possible focus rectangle for now
- for (i = 0; i < (uint16_t)GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) {
+ for (i = 0; i < GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) {
gdispGDrawBox(gx->g.display, gx->g.x+x+i, gx->g.y+y+i, cx-2*i, cy-2*i, gx->pstyle->focus);
}
}