]> git.sesse.net Git - vlc/commitdiff
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 ff7466f562074a6ebbe8c750c8614ad17e9d3107..f39dc35382ac380cf301b02cf7db0fdb04d27462 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,