Commit df631c5b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32 Vout: try to correctly set fullscreen mode under winCE and win32.

parent 95c17341
......@@ -1201,8 +1201,11 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
rect.right, rect.bottom,
SWP_NOZORDER|SWP_FRAMECHANGED );
//HWND topLevelParent = GetParent( p_vout->p_sys->hparent );
#ifdef UNDER_CE
HWND topLevelParent = GetParent( p_vout->p_sys->hparent );
#else
HWND topLevelParent = GetAncestor( p_vout->p_sys->hparent, GA_ROOT );
#endif
ShowWindow( topLevelParent, SW_HIDE );
}
......@@ -1226,8 +1229,11 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
rect.right, rect.bottom,
SWP_NOZORDER|SWP_FRAMECHANGED );
// HWND topLevelParent = GetParent( p_vout->p_sys->hparent );
#ifdef UNDER_CE
HWND topLevelParent = GetParent( p_vout->p_sys->hparent );
#else
HWND topLevelParent = GetAncestor( p_vout->p_sys->hparent, GA_ROOT );
#endif
ShowWindow( topLevelParent, SW_SHOW );
SetForegroundWindow( p_vout->p_sys->hparent );
ShowWindow( hwnd, SW_HIDE );
......
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