summaryrefslogtreecommitdiffstats
path: root/options
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 /options
parent1651d96583422d7e991ad5fde7c61ea3a89d2366 (diff)
downloadmpv-bd169a313c795652a27a6f20d81f6e6507b79e06.tar.bz2
mpv-bd169a313c795652a27a6f20d81f6e6507b79e06.tar.xz
options: add --no-keepaspect-window
Seems silly, but was requested.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 1639719dfe..a6cb4eb45f 100644
--- a/options/options.c
+++ b/options/options.c
@@ -453,6 +453,7 @@ const m_option_t mp_opts[] = {
OPT_INTRANGE("hue", gamma_hue, 0, -100, 100),
OPT_INTRANGE("gamma", gamma_gamma, 0, -100, 100),
OPT_FLAG("keepaspect", vo.keepaspect, 0),
+ OPT_FLAG("keepaspect-window", vo.keepaspect_window, 0),
//---------------------- mplayer-only options ------------------------
@@ -572,6 +573,7 @@ const struct MPOpts mp_default_opts = {
.fsscreen_id = -1,
.panscan = 0.0f,
.keepaspect = 1,
+ .keepaspect_window = 1,
.border = 1,
.WinID = -1,
},
diff --git a/options/options.h b/options/options.h
index 580a0cc780..8d0b694d98 100644
--- a/options/options.h
+++ b/options/options.h
@@ -27,6 +27,7 @@ typedef struct mp_vo_opts {
struct m_geometry autofit_larger;
int keepaspect;
+ int keepaspect_window;
int border;
int64_t WinID;