Fill the windows in the examples with a solid color

Fixes #776.
This commit is contained in:
John Nunley
2023-06-19 11:46:38 -07:00
committed by GitHub
parent 4748890935
commit b2a46d0439
30 changed files with 264 additions and 19 deletions

View File

@@ -8,6 +8,9 @@ use winit::{
window::WindowBuilder,
};
#[path = "util/fill.rs"]
mod fill;
fn main() {
SimpleLogger::new().init().unwrap();
let event_loop = EventLoop::new();
@@ -52,6 +55,9 @@ fn main() {
window.set_resize_increments(new_increments);
}
Event::MainEventsCleared => window.request_redraw(),
Event::RedrawRequested(_) => {
fill::fill_window(&window);
}
_ => (),
}
});