summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-24 22:52:01 +0200
committerwm4 <wm4@nowhere>2015-04-24 23:27:12 +0200
commit72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2 (patch)
tree5b2eea8fb06ad62cd60843d83587eca23f66b8a1 /options/options.c
parente11abdbad2fff17968c914212d5fd68d7536ddeb (diff)
downloadmpv-72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2.tar.bz2
mpv-72e505a944ac6b519d7a2348d63dd9a1fd2fe2a2.tar.xz
player: add --window-scale option
Requested. Works similar to the property with the same name.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index d571a743f1..08ee420bd1 100644
--- a/options/options.c
+++ b/options/options.c
@@ -400,6 +400,7 @@ const m_option_t mp_opts[] = {
OPT_SIZE_BOX("autofit", vo.autofit, 0),
OPT_SIZE_BOX("autofit-larger", vo.autofit_larger, 0),
OPT_SIZE_BOX("autofit-smaller", vo.autofit_smaller, 0),
+ OPT_FLOATRANGE("window-scale", vo.window_scale, 0, 0.001, 100),
OPT_FLAG("force-window-position", vo.force_window_position, 0),
// vo name (X classname) and window title strings
OPT_STRING("x11-name", vo.winname, 0),
@@ -662,6 +663,7 @@ const struct MPOpts mp_default_opts = {
.keepaspect_window = 1,
.border = 1,
.WinID = -1,
+ .window_scale = 1.0,
},
.allow_win_drag = 1,
.wintitle = "mpv - ${?media-title:${media-title}}${!media-title:No file.}",