]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/common.c
Win32: make the fullscreen display really take the full screen
[vlc] / 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,