[vlc-devel] commit: Win32 Vout: try to correctly set fullscreen mode under winCE and win32. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Oct 1 10:06:36 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 30 20:57:28 2008 -0700| [df631c5bc1106fb8ba1ce8205332830588cc0d6c] | committer: Jean-Baptiste Kempf 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df631c5bc1106fb8ba1ce8205332830588cc0d6c
---

 modules/video_output/msw/events.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 529485a..7d05ac7 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -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 );




More information about the vlc-devel mailing list