fix bug that ignored API::update_window in drawer event.
This commit is contained in:
parent
8a6e29a155
commit
b063ce53fb
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Window Layout Implementation
|
* Window Layout Implementation
|
||||||
* Nana C++ Library(http://www.nanapro.org)
|
* Nana C++ Library(http://www.nanapro.org)
|
||||||
* Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com)
|
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
|
||||||
*
|
*
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
@ -24,7 +24,7 @@ namespace nana
|
|||||||
//class window_layout
|
//class window_layout
|
||||||
void window_layout::paint(core_window_t* wd, bool is_redraw, bool is_child_refreshed)
|
void window_layout::paint(core_window_t* wd, bool is_redraw, bool is_child_refreshed)
|
||||||
{
|
{
|
||||||
if (wd->flags.refreshing)
|
if (is_redraw && wd->flags.refreshing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (nullptr == wd->effect.bground)
|
if (nullptr == wd->effect.bground)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Window Manager Implementation
|
* Window Manager Implementation
|
||||||
* Nana C++ Library(http://www.nanapro.org)
|
* Nana C++ Library(http://www.nanapro.org)
|
||||||
* Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com)
|
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
|
||||||
*
|
*
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
@ -810,6 +810,12 @@ namespace detail
|
|||||||
this->map(wd, forced, update_area);
|
this->map(wd, forced, update_area);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (forced)
|
||||||
|
{
|
||||||
|
window_layer::paint(wd, false, false);
|
||||||
|
this->map(wd, true, update_area);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (redraw)
|
else if (redraw)
|
||||||
window_layer::paint(wd, true, false);
|
window_layer::paint(wd, true, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user