Improved processing of edge nimbus effect

This commit is contained in:
cnjinhao
2015-01-15 07:20:02 +08:00
parent bb49ba651c
commit 7b30855976
3 changed files with 19 additions and 13 deletions

View File

@@ -18,6 +18,7 @@
#include <nana/gui/detail/native_window_interface.hpp>
#include <nana/gui/detail/inner_fwd_implement.hpp>
#include <nana/gui/layout_utility.hpp>
#include <nana/gui/detail/effects_renderer.hpp>
#include <stdexcept>
#include <algorithm>
@@ -747,6 +748,12 @@ namespace detail
wndlayout_type::paint(wd, false, false);
this->map(wd);
}
else if (effects::edge_nimbus::none != wd->effect.edge_nimbus)
{
//Update the nimbus effect
using nimbus_renderer = detail::edge_nimbus_renderer<core_window_t>;
nimbus_renderer::instance().render(wd);
}
}
else
wndlayout_type::paint(wd, true, false); //only refreshing if it has an invisible parent