From e962c355ab1c610aec380b774eae4b67402d5023 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Wed, 21 Jun 2017 19:23:36 +1100 Subject: [PATCH] GUI2/Window: removed empty undraw() function This was emptied earlier in my refactor when window unrendering was removed. I simply hadn't removed the function yet. --- src/gui/dialogs/editor/custom_tod.cpp | 15 +++++---------- src/gui/dialogs/editor/custom_tod.hpp | 2 +- src/gui/dialogs/loading_screen.cpp | 1 - src/gui/dialogs/modeless_dialog.cpp | 1 - src/gui/widgets/window.cpp | 5 ----- src/gui/widgets/window.hpp | 5 ----- 6 files changed, 6 insertions(+), 23 deletions(-) diff --git a/src/gui/dialogs/editor/custom_tod.cpp b/src/gui/dialogs/editor/custom_tod.cpp index a94f099dff391..5e95b403e18ee 100644 --- a/src/gui/dialogs/editor/custom_tod.cpp +++ b/src/gui/dialogs/editor/custom_tod.cpp @@ -272,19 +272,14 @@ void custom_tod::color_slider_callback(window& window) current_tod.color.g = color_field_g_->get_widget_value(window); current_tod.color.b = color_field_b_->get_widget_value(window); - update_tod_display(window); + update_tod_display(); } -void custom_tod::update_tod_display(window& window) +void custom_tod::update_tod_display() { display* disp = display::get_singleton(); assert(disp && "Display pointer is null!"); - // Prevent a floating slice of window appearing alone over the - // theme UI sidebar after redrawing tiles and before we have a - // chance to redraw the rest of this window. - window.undraw(); - // NOTE: We only really want to re-render the gamemap tiles here. // Redrawing everything is a significantly more expensive task. // At this time, tiles are the only elements on which ToD tint is @@ -331,7 +326,7 @@ void custom_tod::update_selected_tod_info(window& window) const std::string new_index_str = formatter() << (current_tod_ + 1) << "/" << times_.size(); find_widget