mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
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:
parent
81c602c7d2
commit
9423a7e23e
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user