diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-12-08 11:03:13 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-12-08 11:03:13 +0100 |
commit | 5bead360459435a3aabd403db61105e167b9a081 (patch) | |
tree | b73df3d16d36918507811378b79e57de1bb8cd17 /src | |
parent | fca2766ed80318f211860773aa70509579090e28 (diff) | |
download | uGFX-5bead360459435a3aabd403db61105e167b9a081.tar.gz uGFX-5bead360459435a3aabd403db61105e167b9a081.tar.bz2 uGFX-5bead360459435a3aabd403db61105e167b9a081.zip |
Fixing compiler errors for non-gcc compilers
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/gwin_widget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c index 3180931d..1cc5e609 100644 --- a/src/gwin/gwin_widget.c +++ b/src/gwin/gwin_widget.c @@ -311,12 +311,13 @@ 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 = 0; + // 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 - uint16_t i = 0; 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); } |