Prevening compiler warning

ugfx_release_2.7
Joel Bodenmann 2016-11-19 23:46:50 +01:00
parent e0eacb846c
commit 6c7b3716b3
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ static void gwidgetEvent(void *param, GEvent *pe) {
return;
// Use the very simplest possible focus rectangle for now
for (i = 0; i < GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) {
for (i = 0; i < (uint16_t)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);
}
}