Refactoring

This commit is contained in:
2022-03-12 15:39:29 -06:00
parent 90f2177e5b
commit 19eb4d57f3
14 changed files with 444 additions and 22 deletions
+2 -2
View File
@@ -59,10 +59,10 @@ fn window_loop(event_loop: EventLoop<()>, window: Window, mut pixels: Pixels, mu
} if window_id == window.id() => *control_flow = ControlFlow::Exit,
Event::WindowEvent {
event: WindowEvent::Resized(newSize),
event: WindowEvent::Resized(new_size),
window_id
} if window_id == window.id() => {
pixels.resize_surface(newSize.width, newSize.height);
pixels.resize_surface(new_size.width, new_size.height);
}
Event::MainEventsCleared => {