(svn r14094) -Revert (r14071): caused more problems than it solved

This commit is contained in:
glx 2008-08-17 15:03:54 +00:00
parent e4e563afc2
commit e88e07b3bf

View File

@ -18,12 +18,6 @@
#include <windows.h> #include <windows.h>
#include <tchar.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 { static struct {
HWND main_wnd; HWND main_wnd;
HBITMAP dib_sect; HBITMAP dib_sect;
@ -286,8 +280,8 @@ static bool MakeWindow(bool full_screen)
#endif #endif
w = r.right - r.left; w = r.right - r.left;
h = r.bottom - r.top; h = r.bottom - r.top;
x = ((GetSystemMetrics(SM_CXVIRTUALSCREEN) - w) / 2) - GetSystemMetrics(SM_XVIRTUALSCREEN); x = (GetSystemMetrics(SM_CXSCREEN) - w) / 2;
y = ((GetSystemMetrics(SM_CYVIRTUALSCREEN) - h) / 2) - GetSystemMetrics(SM_YVIRTUALSCREEN); y = (GetSystemMetrics(SM_CYSCREEN) - h) / 2;
if (_wnd.main_wnd) { if (_wnd.main_wnd) {
ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag