Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
juchiast committed Mar 17, 2017
1 parent 22a4b42 commit 9ffc32f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ fn start_game(config: &mut GameConfig, first_time: bool) -> Option<::std::thread
return Some(::std::thread::spawn(|| Game::new(config).run()));
}
}

// Hot-fix for a bug: window does not redraw after
// minimized and maximized again.
if let glium::glutin::Event::Focused(true) = event {
ui.needs_redraw();
}
// Draw the GUI
if let Some(whatever) = ui.draw_if_changed() {
renderer.fill(&display, whatever, &image_map);
Expand Down

0 comments on commit 9ffc32f

Please sign in to comment.