[vlc-devel] commit: WinCE: no MonitorFromWindow (Geoffroy Couprie )

git version control git at videolan.org
Tue Jan 27 18:32:46 CET 2009


vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Tue Jan 27 18:22:04 2009 +0100| [a0578acb0c74f2d9c295f30842f0b5119548d187] | committer: Geoffroy Couprie 

WinCE: no MonitorFromWindow

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

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

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index ae1a26a..9c48875 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -1202,6 +1202,15 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
 
         if( p_vout->p_sys->hparent )
         {
+#ifdef UNDER_CE
+            POINT point = {0,0};
+            RECT rect;
+            ClientToScreen( p_vout->p_sys->hwnd, &point );
+            GetClientRect( p_vout->p_sys->hwnd, &rect );
+            SetWindowPos( hwnd, 0, point.x, point.y,
+                          rect.right, rect.bottom,
+                          SWP_NOZORDER|SWP_FRAMECHANGED );
+#else
             /* Retrieve current window position so fullscreen will happen
             *on the right screen */
             HMONITOR hmon = MonitorFromWindow(p_vout->p_sys->hparent,
@@ -1214,6 +1223,7 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
                             mi.rcMonitor.right - mi.rcMonitor.left,
                             mi.rcMonitor.bottom - mi.rcMonitor.top,
                             SWP_NOZORDER|SWP_FRAMECHANGED );
+#endif
         }
 
         /* Maximize window */




More information about the vlc-devel mailing list