# HG changeset patch # User glx # Date 1218985434 0 # Node ID ba050f82ad30ef67e20e702a3e9b8ec79f6261bd # Parent 69311c7f3af3f9940122c5490616c8c7bf4541b4 (svn r14094) -Revert (r14071): caused more problems than it solved diff -r 69311c7f3af3 -r ba050f82ad30 src/video/win32_v.cpp --- a/src/video/win32_v.cpp Sun Aug 17 13:56:11 2008 +0000 +++ b/src/video/win32_v.cpp Sun Aug 17 15:03:54 2008 +0000 @@ -18,12 +18,6 @@ #include #include -/** Only MSVC has this header, MinGW supplies the required constants itself */ -#ifdef _MSC_VER -# define COMPILE_MULTIMON_STUBS -# include -#endif /* _MSC_VER */ - static struct { HWND main_wnd; HBITMAP dib_sect; @@ -286,8 +280,8 @@ #endif w = r.right - r.left; h = r.bottom - r.top; - x = ((GetSystemMetrics(SM_CXVIRTUALSCREEN) - w) / 2) - GetSystemMetrics(SM_XVIRTUALSCREEN); - y = ((GetSystemMetrics(SM_CYVIRTUALSCREEN) - h) / 2) - GetSystemMetrics(SM_YVIRTUALSCREEN); + x = (GetSystemMetrics(SM_CXSCREEN) - w) / 2; + y = (GetSystemMetrics(SM_CYSCREEN) - h) / 2; if (_wnd.main_wnd) { ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag