1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

vo: update w32_common left out by 4d75514

This commit is contained in:
quilloss 2016-09-01 03:47:28 +08:00 committed by wm4
parent 7539928c1c
commit aae47146a7

View File

@ -1464,16 +1464,13 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg)
{ {
switch (request) { switch (request) {
case VOCTRL_FULLSCREEN: case VOCTRL_FULLSCREEN:
w32->opts->fullscreen = !w32->opts->fullscreen;
if (w32->opts->fullscreen != w32->current_fs) if (w32->opts->fullscreen != w32->current_fs)
reinit_window_state(w32); reinit_window_state(w32);
return VO_TRUE; return VO_TRUE;
case VOCTRL_ONTOP: case VOCTRL_ONTOP:
w32->opts->ontop = !w32->opts->ontop;
reinit_window_state(w32); reinit_window_state(w32);
return VO_TRUE; return VO_TRUE;
case VOCTRL_BORDER: case VOCTRL_BORDER:
w32->opts->border = !w32->opts->border;
reinit_window_state(w32); reinit_window_state(w32);
return VO_TRUE; return VO_TRUE;
case VOCTRL_GET_UNFS_WINDOW_SIZE: { case VOCTRL_GET_UNFS_WINDOW_SIZE: {