Skip to content

Commit

Permalink
GUI2: removed some unnecessary calls to canvas::set_is_dirty
Browse files Browse the repository at this point in the history
The one in Outro was unnecessary since set_variable already calls set_is_dirty.
The one in the Story Viewer was there to deal with some background redraw issues which no longer appear
with the new drawing methods.
  • Loading branch information
Vultraz committed Mar 18, 2018
1 parent 8396b53 commit 8553452
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/gui/dialogs/outro.cpp
Expand Up @@ -96,7 +96,6 @@ void outro::draw_callback(window& window)
canvas& window_canvas = window.get_canvas(0);

window_canvas.set_variable("fade_step", wfl::variant(fade_step_));
window_canvas.set_is_dirty(true);

if(fading_in_) {
fade_step_ ++;
Expand Down
3 changes: 0 additions & 3 deletions src/gui/dialogs/story_viewer.cpp
Expand Up @@ -217,9 +217,6 @@ void story_viewer::display_part(window& window)

window_canvas.set_cfg(cfg);

// Needed to make the background redraw correctly.
window_canvas.set_is_dirty(true);

//
// Title
//
Expand Down

0 comments on commit 8553452

Please sign in to comment.