mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 22:49:58 +00:00
wayland: don't rescale dimensions if hidpi-window-scale is disabled
If the scaling value changed for some reason, the window geometry would be recalculated with the new scaling even if this option was disabled. Properly ignore it.
This commit is contained in:
parent
e32554cd57
commit
ded181f642
@ -1689,6 +1689,9 @@ static void request_decoration_mode(struct vo_wayland_state *wl, uint32_t mode)
|
||||
|
||||
static void rescale_geometry(struct vo_wayland_state *wl, double old_scale)
|
||||
{
|
||||
if (!wl->vo_opts->hidpi_window_scale)
|
||||
return;
|
||||
|
||||
double factor = old_scale / wl->scaling;
|
||||
wl->window_size.x1 /= factor;
|
||||
wl->window_size.y1 /= factor;
|
||||
|
Loading…
Reference in New Issue
Block a user