Added missing check for GDISP_NEED_CIRCLE

This commit is contained in:
Steffen Schroeter 2018-01-23 14:05:11 +01:00
parent e0f22d9cb8
commit c119ca4a5d
2 changed files with 14 additions and 10 deletions

View File

@ -371,7 +371,9 @@ bool_t _gwinWMAdd(GHandle gh, const GWindowInit *pInit);
*
* @notapi
*/
#if GDISP_NEED_CIRCLE
void _gwidgetDrawFocusCircle(GWidgetObject *gx, coord_t radius);
#endif
#else
#define _gwinFixFocus(gh)

View File

@ -330,6 +330,7 @@ static void gwidgetEvent(void *param, GEvent *pe) {
}
}
#if GDISP_NEED_CIRCLE
void _gwidgetDrawFocusCircle(GWidgetObject *gx, coord_t radius) {
coord_t i;
@ -341,6 +342,7 @@ static void gwidgetEvent(void *param, GEvent *pe) {
gdispGDrawCircle(gx->g.display, gx->g.x + radius, gx->g.y + radius, radius + i, gx->pstyle->focus);
}
}
#endif
#endif
#if GFX_USE_GINPUT && GINPUT_NEED_TOGGLE