diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index 3e5849fe80..4879115d86 100644 --- a/player/command.c +++ b/player/command.c @@ -2169,13 +2169,15 @@ static int mp_property_window_scale(void *ctx, struct m_property *prop, case M_PROPERTY_SET: { double scale = *(double *)arg; int s[2] = {vid_w * scale, vid_h * scale}; - if (s[0] > 0 && s[1] > 0 && vo_control(vo, VOCTRL_SET_WINDOW_SIZE, s) > 0) + if (s[0] > 0 && s[1] > 0 && + vo_control(vo, VOCTRL_SET_UNFS_WINDOW_SIZE, s) > 0) return M_PROPERTY_OK; return M_PROPERTY_UNAVAILABLE; } case M_PROPERTY_GET: { int s[2]; - if (vo_control(vo, VOCTRL_GET_WINDOW_SIZE, s) <= 0 || s[0] < 1 || s[1] < 1) + if (vo_control(vo, VOCTRL_GET_UNFS_WINDOW_SIZE, s) <= 0 || + s[0] < 1 || s[1] < 1) return M_PROPERTY_UNAVAILABLE; double xs = (double)s[0] / vid_w; double ys = (double)s[1] / vid_h; |