Better redrawing when doing a forced change of default style.

ugfx_release_2.6
inmarket 2014-05-11 20:09:42 +10:00
parent d02b5e06e9
commit 8c5275583a
1 changed files with 2 additions and 0 deletions

View File

@ -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);