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.
This commit is contained in:
parent
3154ab419f
commit
6c04ae29b9
5 changed files with 6 additions and 29 deletions
|
@ -270,19 +270,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
|
||||
|
@ -329,7 +324,7 @@ void custom_tod::update_selected_tod_info(window& window)
|
|||
const std::string new_index_str = formatter() << (current_tod_ + 1) << "/" << times_.size();
|
||||
find_widget<label>(&window, "tod_number", false).set_label(new_index_str);
|
||||
|
||||
update_tod_display(window);
|
||||
update_tod_display();
|
||||
}
|
||||
|
||||
void custom_tod::copy_to_clipboard_callback(tod_attribute_getter getter)
|
||||
|
@ -337,9 +332,9 @@ void custom_tod::copy_to_clipboard_callback(tod_attribute_getter getter)
|
|||
desktop::clipboard::copy_to_clipboard(getter(get_selected_tod()).second, false);
|
||||
}
|
||||
|
||||
void custom_tod::post_show(window& window)
|
||||
void custom_tod::post_show(window& /*window*/)
|
||||
{
|
||||
update_tod_display(window);
|
||||
update_tod_display();
|
||||
|
||||
if(get_retval() == retval::OK) {
|
||||
// TODO: save ToD
|
||||
|
|
|
@ -59,7 +59,7 @@ private:
|
|||
|
||||
void color_slider_callback(window& window);
|
||||
|
||||
void update_tod_display(window& window);
|
||||
void update_tod_display();
|
||||
|
||||
void update_lawful_bonus(window& window);
|
||||
|
||||
|
|
|
@ -63,7 +63,6 @@ void modeless_dialog::hide()
|
|||
remove_from_window_stack(window_.get());
|
||||
}
|
||||
|
||||
window_->undraw();
|
||||
window_.reset(nullptr); }
|
||||
}
|
||||
|
||||
|
|
|
@ -611,18 +611,6 @@ void window::draw()
|
|||
}
|
||||
}
|
||||
|
||||
void window::undraw()
|
||||
{
|
||||
#if 0
|
||||
if(restore_ && restorer_) {
|
||||
SDL_Rect rect = get_rectangle();
|
||||
sdl_blit(restorer_, 0, video_.getSurface(), &rect);
|
||||
// Since the old area might be bigger as the new one, invalidate
|
||||
// it.
|
||||
}
|
||||
#endif // 0
|
||||
}
|
||||
|
||||
window::invalidate_layout_blocker::invalidate_layout_blocker(window& window)
|
||||
: window_(window)
|
||||
{
|
||||
|
|
|
@ -147,11 +147,6 @@ public:
|
|||
*/
|
||||
void draw();
|
||||
|
||||
/**
|
||||
* Undraws the window.
|
||||
*/
|
||||
void undraw();
|
||||
|
||||
/** The status of the window. */
|
||||
enum status {
|
||||
NEW, /**< The window is new and not yet shown. */
|
||||
|
|
Loading…
Add table
Reference in a new issue