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