mirror of https://github.com/mpv-player/mpv
video/out/win_state.c: fix --monitoraspect
This commit is contained in:
parent
392159337f
commit
cd99121185
|
@ -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