diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-08-09 20:12:25 +0300 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-08-18 02:21:33 +0300 |
commit | 052220d1c7774fc700054a69d1e773bd4ec687c1 (patch) | |
tree | 91240aef5a2af3990283a10ae90668afba97c140 /common/common.c | |
parent | 19e24bbe86d5cb241c5a23a9fec423aef0a4063d (diff) | |
download | mpv-052220d1c7774fc700054a69d1e773bd4ec687c1.tar.bz2 mpv-052220d1c7774fc700054a69d1e773bd4ec687c1.tar.xz |
win32: apply dpi-scale with [current]-window-scale
When --window-scale=NUM is set from CLI, the dpi_scale value was/is
taken into account when the win32 VO calls vo_calc_window_geometry2.
However, when [current]-window-scale is read or set at runtime, it uses
the VOCTRL_{GET,SET}_UNFS_WINDOW_SIZE interface, where other VOs apply
the dpi_scale value internally (wayland, x11, osx), but the win32 VO
didn't before this commit.
Fixes two issues when --hidpi-window-scale=yes and dpi_scale != 1 :
- Incorrect window-size when setting [current-]window-scale at runtime.
- Incorrect current-window-scale value when reading it.
Diffstat (limited to 'common/common.c')
0 files changed, 0 insertions, 0 deletions