Performance improvements

This commit is contained in:
cnjinhao
2015-01-09 08:12:20 +08:00
parent 750c3dffd5
commit 9a71f23ddd
16 changed files with 46 additions and 56 deletions

View File

@@ -378,11 +378,9 @@ namespace nana
dw->draw(graphics);
}
//If the drawer_trigger didn't declear a lazy refresh, then use the refresh().
void drawer::_m_use_refresh()
bool drawer::_m_lazy_decleared() const
{
if (basic_window::update_state::refresh != core_window_->other.upd_state)
refresh();
return (basic_window::update_state::refresh != core_window_->other.upd_state);
}
}//end namespace detail
}//end namespace nana