diff options
| author | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:09:42 +1000 |
|---|---|---|
| committer | inmarket <andrewh@inmarket.com.au> | 2014-05-11 20:09:42 +1000 |
| commit | 8c5275583a452e46ddecb82b6ea888feafab926b (patch) | |
| tree | a0d43b6fbcb337784f6f6ea53eea9d37d0857a8f | |
| parent | d02b5e06e9c3e49e59cb22f3adf95f547a7e08b4 (diff) | |
| download | uGFX-8c5275583a452e46ddecb82b6ea888feafab926b.tar.gz uGFX-8c5275583a452e46ddecb82b6ea888feafab926b.tar.bz2 uGFX-8c5275583a452e46ddecb82b6ea888feafab926b.zip | |
Better redrawing when doing a forced change of default style.
| -rw-r--r-- | src/gwin/gwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gwin/gwidget.c b/src/gwin/gwidget.c index de31daa8..ccfbd26e 100644 --- a/src/gwin/gwidget.c +++ b/src/gwin/gwidget.c @@ -320,6 +320,8 @@ void gwinSetDefaultStyle(const GWidgetStyle *pstyle, bool_t updateAll) { for(gh = gwinGetNextWindow(0); gh; gh = gwinGetNextWindow(gh)) { if ((gh->flags & GWIN_FLG_WIDGET) && ((GWidgetObject *)gh)->pstyle == defaultStyle) gwinSetStyle(gh, pstyle); + else + gwinRedraw(gh); } } gwinSetDefaultBgColor(pstyle->background); |
