summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-04 22:17:36 +0200
committerwm4 <wm4@nowhere>2014-10-04 22:17:36 +0200
commitbd169a313c795652a27a6f20d81f6e6507b79e06 (patch)
tree502ed7e8d16b7cdfb3067601627c1c325803ab36 /video/out/x11_common.c
parent1651d96583422d7e991ad5fde7c61ea3a89d2366 (diff)
downloadmpv-bd169a313c795652a27a6f20d81f6e6507b79e06.tar.bz2
mpv-bd169a313c795652a27a6f20d81f6e6507b79e06.tar.xz
options: add --no-keepaspect-window
Seems silly, but was requested.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index aed54f9010..b094364a6e 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -999,7 +999,7 @@ static void vo_x11_sizehint(struct vo *vo, struct mp_rect rc, bool override_pos)
hint->max_width = 0;
hint->max_height = 0;
- if (opts->keepaspect) {
+ if (opts->keepaspect && opts->keepaspect_window) {
hint->flags |= PAspect;
hint->min_aspect.x = hint->width;
hint->min_aspect.y = hint->height;