cargo update

This commit is contained in:
2023-08-24 12:27:15 +02:00
parent 82ea75e6d3
commit 0b528b3391
2 changed files with 468 additions and 356 deletions

820
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -173,7 +173,7 @@ fn main() {
context.resize(glutin::dpi::PhysicalSize::new(new_size.0, new_size.1));
window_aspect_ratio = new_size.0 as f32 / new_size.1 as f32;
(*new_size).2 = false;
println!("Resized");
println!("Window was resized to {}x{}", new_size.0, new_size.1);
unsafe { gl::Viewport(0, 0, new_size.0 as i32, new_size.1 as i32); }
}
}
@@ -258,7 +258,7 @@ fn main() {
match event {
Event::WindowEvent { event: WindowEvent::Resized(physical_size), .. } => {
println!("New window size! width: {}, height: {}", physical_size.width, physical_size.height);
println!("New window size received: {}x{}", physical_size.width, physical_size.height);
if let Ok(mut new_size) = arc_window_size.lock() {
*new_size = (physical_size.width, physical_size.height, true);
}