-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect monitor resolution being reported by display-info crate #46
Comments
egui has it's own "display-info" (it only returns the size of the display the app is on + you need access to a let monitor_size = ctx.input(|i| {
let viewport = i.viewport();
viewport.monitor_size
}); |
WHAT! Did they add that recently or like in the last 2 major releases? That's literally all I need. |
It existed since v0.24.0: https://docs.rs/egui/0.24.0/egui/struct.ViewportInfo.html |
Now that I think of it I feel like I've tried this before and it didn't work or something, but I'll certainly try it again. |
Yeah I wanna do a complete restructure of |
If you're on a laptop with a 1920x1080 display and it's scale factor is set to 125% like mine the incorrect width and height will be reported by display-info breaking the smart downsampling optimization in Roseate.
See nashaofu/display-info#38
The text was updated successfully, but these errors were encountered: