mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
video: enable panscan calculations even in windowed mode
This was probably enabled to guarantee that panscan is always reset in windowed mode. However, the window size should be exactly the video size in windowed mode, unless in cases where the user forcibly changed the window size (e.g. --geometry). In the former case, panscan will have no influence at all, and in the latter case we want it to have influence.
This commit is contained in:
parent
f86deec58b
commit
79d35b8f01
@ -104,7 +104,6 @@ void aspect_calc_panscan(struct vo *vo, int *out_w, int *out_h)
|
||||
} else
|
||||
vo_panscan_area = -opts->panscanrange * vo->dheight;
|
||||
|
||||
float panscan_amount = opts->fs ? opts->panscan : 0;
|
||||
*out_w = fwidth + vo_panscan_area * panscan_amount * vo->aspdat.asp;
|
||||
*out_h = fheight + vo_panscan_area * panscan_amount;
|
||||
*out_w = fwidth + vo_panscan_area * opts->panscan * vo->aspdat.asp;
|
||||
*out_h = fheight + vo_panscan_area * opts->panscan;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user