fixed a bground effect refresh issue.

This commit is contained in:
cnjinhao
2015-01-29 03:26:35 +08:00
parent a802083feb
commit e0259e6254
5 changed files with 34 additions and 17 deletions

View File

@@ -308,8 +308,14 @@ namespace nana
{
if (is_redraw || called_by_notify)
{
if (called_by_notify)
//The background is made by more than calling by notification(such as redraw of parent,
//redraw of siblings which are covered by wd), sometimes it should be remade when an attribute
//of the wd is changed(such as its background color is changed).
if (called_by_notify || wd->flags.make_bground_declared)
{
make_bground(wd);
wd->flags.make_bground_declared = false;
}
wd->flags.refreshing = true;
wd->drawer.refresh();