Commit 2ee36547 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

MSW vout: fix compilation since [76e8da0f] change

parent 20abd0db
......@@ -350,13 +350,13 @@ static int ControlReopenDevice(vout_display_t *vd)
if (sys->desktop_save.is_fullscreen)
vout_display_SendEventFullscreen(vd, false);
if (sys->desktop_save.is_on_top)
vout_display_SendEventOnTop(vd, false);
vout_display_SendWindowState(vd, VOUT_WINDOW_STATE_NORMAL);
} else {
/* Restore fullscreen/on_top */
if (sys->desktop_save.is_fullscreen)
vout_display_SendEventFullscreen(vd, true);
if (sys->desktop_save.is_on_top)
vout_display_SendEventOnTop(vd, true);
vout_display_SendWindowState(vd, VOUT_WINDOW_STATE_ABOVE);
}
return VLC_SUCCESS;
}
......
......@@ -749,7 +749,8 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
{
msg_Dbg(vd, "WinProc WM_SYSCOMMAND: IDM_TOGGLE_ON_TOP");
HMENU hMenu = GetSystemMenu(vd->sys->hwnd, FALSE);
vout_display_SendEventOnTop(vd, (GetMenuState(hMenu, IDM_TOGGLE_ON_TOP, MF_BYCOMMAND) & MF_CHECKED) == 0);
vout_display_SendWindowState(vd, (GetMenuState(hMenu, IDM_TOGGLE_ON_TOP, MF_BYCOMMAND) & MF_CHECKED) ?
VOUT_WINDOW_STATE_NORMAL : VOUT_WINDOW_STATE_ABOVE);
return 0;
}
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment