mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 09:59:44 +00:00
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.
This commit is contained in:
parent
b6ba87af4b
commit
995962291a
@ -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),
|
||||
|
@ -34,7 +34,7 @@ typedef struct mp_vo_opts {
|
||||
struct m_geometry autofit;
|
||||
struct m_geometry autofit_larger;
|
||||
struct m_geometry autofit_smaller;
|
||||
float window_scale;
|
||||
double window_scale;
|
||||
|
||||
int keepaspect;
|
||||
int keepaspect_window;
|
||||
|
Loading…
Reference in New Issue
Block a user