mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 19:32:35 +00:00
replace draw()+update_display() by a draw() forcing the update
(this spare a useless screen refresh)
This commit is contained in:
parent
11130ef287
commit
78ea02f7d8
@ -106,8 +106,7 @@ void playmp_controller::play_side(const unsigned int team_index, bool save){
|
||||
gui_->set_team(t-1);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw();
|
||||
gui_->update_display();
|
||||
gui_->draw(true,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -289,8 +288,7 @@ void playmp_controller::linger(upload_log& log)
|
||||
gui_->set_team(0,true);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw();
|
||||
gui_->update_display();
|
||||
gui_->draw(true,true);
|
||||
|
||||
bool quit;
|
||||
do {
|
||||
|
@ -536,8 +536,7 @@ void playsingle_controller::play_side(const unsigned int team_index, bool save)
|
||||
gui_->set_team(t-1);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw();
|
||||
gui_->update_display();
|
||||
gui_->draw(true,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -564,8 +563,7 @@ void playsingle_controller::before_human_turn(bool save)
|
||||
gui_->set_team(player_number_ - 1);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw();
|
||||
gui_->update_display();
|
||||
gui_->draw(true,true);
|
||||
|
||||
if (save) {
|
||||
menu_handler_.autosave(gamestate_.label, status_.turn(), gamestate_.starting_pos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user