Fixing compiler errors for non-gcc compilers

ugfx_release_2.6
Joel Bodenmann 2015-12-08 11:03:13 +01:00
parent fca2766ed8
commit 5bead36045
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}