x11: make window-scale use windowed size in fullscreen mode

This is a bit more intuitive, since before, the window size was just set
to something random when setting the window-scale property during
fullscreen.
This commit is contained in:
wm4 2013-11-02 17:32:03 +01:00
parent 81c602c7d2
commit 9423a7e23e
1 changed files with 2 additions and 2 deletions

View File

@ -1490,8 +1490,8 @@ int vo_x11_control(struct vo *vo, int *events, int request, void *arg)
int *s = arg;
if (!x11->window)
return VO_FALSE;
s[0] = x11->win_width;
s[1] = x11->win_height;
s[0] = x11->fs ? x11->nofs_width : x11->win_width;
s[1] = x11->fs ? x11->nofs_height : x11->win_height;
return VO_TRUE;
}
case VOCTRL_SET_WINDOW_SIZE: {