Skip to content

Commit

Permalink
Don't trigger a full redraw when toggling label visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 28, 2016
1 parent b655ec8 commit 1e7abb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/menu_events.cpp
Expand Up @@ -1073,9 +1073,8 @@ void menu_handler::clear_labels()
}

void menu_handler::label_settings() {
// TODO: I think redraw_everything might be a bit too much? It causes a flicker.
if(gui2::tlabel_settings::execute(board(), gui_->video()))
gui_->redraw_everything();
gui_->labels().recalculate_labels();
}

void menu_handler::continue_move(mouse_handler &mousehandler, int side_num)
Expand Down

0 comments on commit 1e7abb4

Please sign in to comment.