Win32: make the fullscreen display really take the full screen
authorGeoffroy Couprie <geal@videolan.org>
Tue, 13 Oct 2009 10:13:47 +0000 (12:13 +0200)
committerGeoffroy Couprie <geal@videolan.org>
Tue, 13 Oct 2009 10:14:20 +0000 (12:14 +0200)
modules/video_output/msw/common.c

index ff7466f..f39dc35 100644 (file)
@@ -624,6 +624,7 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
             HMONITOR hmon = MonitorFromWindow(p_vout->p_sys->hparent,
                                             MONITOR_DEFAULTTONEAREST);
             MONITORINFO mi;
+            mi.cbSize = sizeof(MONITORINFO);
             if (GetMonitorInfo(hmon, &mi))
             SetWindowPos( hwnd, 0,
                             mi.rcMonitor.left,