From 8c5275583a452e46ddecb82b6ea888feafab926b Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 11 May 2014 20:09:42 +1000 Subject: [PATCH] Better redrawing when doing a forced change of default style. --- src/gwin/gwidget.c | 2 ++ 1 file changed, 2 insertions(+) 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);