diff options
author | wm4 <wm4@nowhere> | 2016-09-20 01:20:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-20 01:25:50 +0200 |
commit | 995962291a386229087656ec8ceaf01d66004955 (patch) | |
tree | b9b40f2978ef150ffe4babdc81489cbe1b554273 /options/options.c | |
parent | b6ba87af4bf51e8539fe97307426e1706071c949 (diff) | |
download | mpv-995962291a386229087656ec8ceaf01d66004955.tar.bz2 mpv-995962291a386229087656ec8ceaf01d66004955.tar.xz |
options: fix window-scale property
A recent change merged the window-scaler option and property, but forgot
that the option is float for some reason, while the property uses
double. This led to undefined behavior. Fix it by changing the option
to double too.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index 533dda244c..70d921ab73 100644 --- a/options/options.c +++ b/options/options.c @@ -156,7 +156,7 @@ static const m_option_t mp_vo_opt_list[] = { OPT_SIZE_BOX("autofit", autofit, 0), OPT_SIZE_BOX("autofit-larger", autofit_larger, 0), OPT_SIZE_BOX("autofit-smaller", autofit_smaller, 0), - OPT_FLOATRANGE("window-scale", window_scale, 0, 0.001, 100), + OPT_DOUBLE("window-scale", window_scale, CONF_RANGE, .min = 0.001, .max = 100), OPT_FLAG("force-window-position", force_window_position, 0), OPT_STRING("x11-name", winname, 0), OPT_FLOATRANGE("monitoraspect", force_monitor_aspect, 0, 0.0, 9.0), |