gui2/tcustom_tod: Remove direct call to gui2::twindow::draw()

It's unnecessary, results in a noticeable performance penality when
updating ToD color shift sliders, and the documentation says it's not to
be called directly (which raises the question of why it's a public
method in the first place).
This commit is contained in:
Ignacio R. Morelle 2013-12-01 18:13:45 -03:00
parent b6cd504024
commit a660471f95

View file

@ -209,7 +209,6 @@ void tcustom_tod::update_tod_display(twindow& window)
display_->draw(); display_->draw();
window.invalidate_layout(); window.invalidate_layout();
window.draw();
} }
void tcustom_tod::update_lawful_bonus(twindow& window) void tcustom_tod::update_lawful_bonus(twindow& window)