2007-10-03 Frank Fesevur <ffes@users.sourceforge.net>

* lib/scnsave.c: Multi-monitor support.
This commit is contained in:
Chris Sutcliffe 2007-10-03 23:34:14 +00:00
parent b980db14b8
commit b0d00f7a53
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-10-03 Frank Fesevur <ffes@users.sourceforge.net>
* lib/scnsave.c: Multi-monitor support.
2007-08-03 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/w32api.h: Increment version to 3.10.

View File

@ -204,15 +204,17 @@ static int LaunchScreenSaver(HWND hParent)
else
{
style = WS_POPUP;
rc.right = GetSystemMetrics(SM_CXSCREEN);
rc.bottom = GetSystemMetrics(SM_CYSCREEN);
rc.left = GetSystemMetrics(SM_XVIRTUALSCREEN);
rc.top = GetSystemMetrics(SM_YVIRTUALSCREEN);
rc.right = GetSystemMetrics(SM_CXVIRTUALSCREEN);
rc.bottom = GetSystemMetrics(SM_CYVIRTUALSCREEN);
style |= WS_VISIBLE;
}
/* create main screen saver window */
hMainWindow = CreateWindowEx(hParent ? 0 : WS_EX_TOPMOST, CLASS_SCRNSAVE,
TEXT("SCREENSAVER"), style,
0, 0, rc.right, rc.bottom, hParent, NULL,
rc.left, rc.top, rc.right, rc.bottom, hParent, NULL,
hMainInstance, NULL);
/* display window and start pumping messages */