mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
video/out/win_state.c: fix --monitoraspect
This commit is contained in:
parent
6719662fed
commit
2ab259e683
@ -26,7 +26,7 @@ static void calc_monitor_aspect(struct mp_vo_opts *opts, int scr_w, int scr_h,
|
||||
*pixelaspect = 1.0 / opts->monitor_pixel_aspect;
|
||||
|
||||
if (scr_w > 0 && scr_h > 0 && opts->force_monitor_aspect)
|
||||
*pixelaspect = opts->force_monitor_aspect * scr_h / scr_w;
|
||||
*pixelaspect = 1.0 / (opts->force_monitor_aspect * scr_h / scr_w);
|
||||
|
||||
if (*pixelaspect < 1) {
|
||||
*h /= *pixelaspect;
|
||||
|
Loading…
Reference in New Issue
Block a user