diff options
author | glx <glx@openttd.org> | 2008-08-17 15:03:54 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-08-17 15:03:54 +0000 |
commit | fbd2db34e6cbede11406203a53ae69a995bc3a88 (patch) | |
tree | fb7b36700a6e9cfbbb8df70f1fcd622d8608a9dd /src | |
parent | 2f5caa63f8a68fcfeff42b355d0fd4b346447beb (diff) | |
download | openttd-fbd2db34e6cbede11406203a53ae69a995bc3a88.tar.xz |
(svn r14094) -Revert (r14071): caused more problems than it solved
Diffstat (limited to 'src')
-rw-r--r-- | src/video/win32_v.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index ba60df200..9f5c32045 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -18,12 +18,6 @@ #include <windows.h> #include <tchar.h> -/** Only MSVC has this header, MinGW supplies the required constants itself */ -#ifdef _MSC_VER -# define COMPILE_MULTIMON_STUBS -# include <multimon.h> -#endif /* _MSC_VER */ - static struct { HWND main_wnd; HBITMAP dib_sect; @@ -286,8 +280,8 @@ static bool MakeWindow(bool full_screen) #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 |