From e267ff93f32783e324c93395ab135e5b26f0efe1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Sep 2014 22:53:50 +0200 Subject: video: rename VOCTRL_GET_WINDOW_SIZE Make it clear that this accesses the un-fullscreened window size. --- player/command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'player/command.c') 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; -- cgit v1.2.3