summaryrefslogtreecommitdiffstats
path: root/video/out/aspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/aspect.c')
-rw-r--r--video/out/aspect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/aspect.c b/video/out/aspect.c
index 5cd5b32573..4515b2a5ca 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -54,9 +54,9 @@ static void aspect_calc_panscan(struct mp_vo_opts *opts,
if (unscaled) {
vo_panscan_area = 0;
- if (unscaled != 2 || (w <= window_w && h <= window_h)) {
- fwidth = w;
- fheight = h;
+ if (unscaled != 2 || (d_w <= window_w && d_h <= window_h)) {
+ fwidth = d_w * monitor_par;
+ fheight = d_h;
}
}