Scaling broke on Wayland (between version `0.24.1` and `0.25.0`): the window is twice the size it should be when the scaling factor is `2`
When the scaling factor is 2 and I set the window size using ViewportBuilder::with_inner_size() in EGUI, the window ends up twice the size it should be (4 times the original amount of pixels). Things like images inside the window get scaled correctly
As far as I can tell the bug was introduced between these versions: https://github.com/emilk/egui/compare/0.24.1...0.25.0
(the image and window should have the same size here)
This could also be an winit bug, I don't know
with_inner_size() applies zoom_factor.
Set zoom_factor to 1.0.
The window size is normal, but should the image be doubled (4x the width)?
See #4948 for how to resize the image to fit the window.
- #4948
Messing with egui::Context::set_zoom_factor() doesn't seem to help at all - it only changes the image size.
To be clear, I am calling with_inner_size() with [640, 480], hyprctl clients reports the window to be [1280, 960] but the window is drawn with size [2560, 1920]. My monitor has size [2880, 1800], hyprctl clients reports fullscreen windows as with size [1440, 900]
This leads me to the conclusion that EGUI is making the window twice the size it should be