diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-08-16 14:37:12 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-08-16 14:37:12 +0200 |
commit | 058a873e9e425207db8b99be083e87cf956b9827 (patch) | |
tree | a849f322707da03f687fbc24f42dbcd1a279d67a /src/gwin/gwin_widget.c | |
parent | a569bbfc1eaf2ac67e151c27ee674107a589f93d (diff) | |
download | uGFX-058a873e9e425207db8b99be083e87cf956b9827.tar.gz uGFX-058a873e9e425207db8b99be083e87cf956b9827.tar.bz2 uGFX-058a873e9e425207db8b99be083e87cf956b9827.zip |
Adding GWIN_FOCUS_HIGHLIGHT_WIDTH
Diffstat (limited to 'src/gwin/gwin_widget.c')
-rw-r--r-- | src/gwin/gwin_widget.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c index fceb65c8..162d41e3 100644 --- a/src/gwin/gwin_widget.c +++ b/src/gwin/gwin_widget.c @@ -311,8 +311,11 @@ static void gwidgetEvent(void *param, GEvent *pe) { if (&gx->g != _widgetInFocus) return; - // Use the very simplest possible focus rectangle for now. - gdispGDrawBox(gx->g.display, gx->g.x+x, gx->g.y+y, cx, cy, gx->pstyle->focus); + // 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); + } } #endif |