gui2/tcustom_tod: Avoid having display::draw() commit the framebuffer

This allows the dialog to be redrawn on top of the updated display
contents once we are done without any flickering, and performance is
much better because this results in the framebuffer being committed once
instead of twice every time ToD color shift slider events are processed.
This commit is contained in:
Ignacio R. Morelle 2013-12-01 18:15:00 -03:00
parent a660471f95
commit 2c14edefd8

View file

@ -206,7 +206,7 @@ void tcustom_tod::update_tod_display(twindow& window)
// invalidate all tiles so they are redrawn with the new ToD tint next
display_->invalidate_all();
// redraw tiles
display_->draw();
display_->draw(false);
window.invalidate_layout();
}