fix: scaling

This commit is contained in:
Ashley Wulber 2024-10-29 14:34:19 -04:00
parent 66dc0eab25
commit 43f4760b0e
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -388,7 +388,7 @@ impl EventLoop {
.last_configure
.as_ref()
.and_then(|c| c.suggested_bounds)
.map(|b| dpi::PhysicalSize::new(b.0, b.1))
.map(|b| dpi::LogicalSize::new(b.0, b.1).to_physical(window.scale_factor()))
.clone()
});
let event = WindowEvent::SuggestedBounds(suggested_bounds);