aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-05-11 20:09:42 +1000
committerinmarket <andrewh@inmarket.com.au>2014-05-11 20:09:42 +1000
commit8c5275583a452e46ddecb82b6ea888feafab926b (patch)
treea0d43b6fbcb337784f6f6ea53eea9d37d0857a8f /src
parentd02b5e06e9c3e49e59cb22f3adf95f547a7e08b4 (diff)
downloaduGFX-8c5275583a452e46ddecb82b6ea888feafab926b.tar.gz
uGFX-8c5275583a452e46ddecb82b6ea888feafab926b.tar.bz2
uGFX-8c5275583a452e46ddecb82b6ea888feafab926b.zip
Better redrawing when doing a forced change of default style.
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwidget.c2
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);