Partial fix for labels not being drawn while a dialog is open

This commit is contained in:
Celtic Minstrel 2017-04-28 21:47:35 -04:00
parent 0828c2bdf8
commit e7cf873002
2 changed files with 5 additions and 1 deletions

View file

@ -315,6 +315,7 @@ window::window(CVideo& video,
, invalidate_layout_blocked_(false)
, suspend_drawing_(true)
, restore_(true)
, is_toplevel_(!is_in_dialog())
, restorer_()
, automatic_placement_(automatic_placement)
, horizontal_placement_(horizontal_placement)
@ -717,7 +718,7 @@ void window::draw()
// We want the labels underneath the window so draw them and use them
// as restore point.
if(!is_in_dialog()) {
if(is_toplevel_) {
font::draw_floating_labels(frame_buffer);
}

View file

@ -536,6 +536,9 @@ private:
/** Whether the window should undraw the window using restorer_ */
bool restore_;
/** Whether the window has other windows behind it */
bool is_toplevel_;
/** When the window closes this surface is used to undraw the window. */
surface restorer_;