diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-08-09 22:04:29 +0300 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-08-18 02:21:33 +0300 |
commit | 19e24bbe86d5cb241c5a23a9fec423aef0a4063d (patch) | |
tree | 878743c4754c18c5c4b834b7633c489738bcb69d /VERSION | |
parent | 3abb23d70f064803e0399f44714791687b455b2f (diff) | |
download | mpv-19e24bbe86d5cb241c5a23a9fec423aef0a4063d.tar.bz2 mpv-19e24bbe86d5cb241c5a23a9fec423aef0a4063d.tar.xz |
win32: ensure initial dpi-scale value
vo_calc_window_geometry2(...) is called to initialize the window
size with the dpi_scale value as one of the arguments.
dpi_scale is 0 initially, and set to a valid value at update_dpi(),
which is called from [force_]update_display_info().
However, no measures were taken to ensure that dpi_scale is set
correctly before vo_calc_window_geometry2() is called, which could
result in incorrect window size if it's not initialized.
It did happen to get initialized on time, by luck, because
VOCTRL_GET_DISPLAY_FPS is used early, which happens to call
update_display_info to read the fps value (other update_display_info()
calls are after the first vo_calc_window_geometry2() call).
This commit ensures that dpi_scale is initialized on time if needed.
Also, update_dpi() now ensures that dpi_scale is never 0.
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions