We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a4b42 commit 9ffc32fCopy full SHA for 9ffc32f
src/ui.rs
@@ -141,7 +141,11 @@ fn start_game(config: &mut GameConfig, first_time: bool) -> Option<::std::thread
141
return Some(::std::thread::spawn(|| Game::new(config).run()));
142
}
143
144
-
+ // Hot-fix for a bug: window does not redraw after
145
+ // minimized and maximized again.
146
+ if let glium::glutin::Event::Focused(true) = event {
147
+ ui.needs_redraw();
148
+ }
149
// Draw the GUI
150
if let Some(whatever) = ui.draw_if_changed() {
151
renderer.fill(&display, whatever, &image_map);
0 commit comments