diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2007-10-04 03:34:14 +0400 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2007-10-04 03:34:14 +0400 |
commit | b0d00f7a533f4f6fbcdf7916eeadc93cc6d72ed5 (patch) | |
tree | 85a477d39a059eb80021dfc8b5ffc73ec07690e6 /winsup | |
parent | b980db14b822420920ec876db23459f56509212c (diff) |
2007-10-03 Frank Fesevur <ffes@users.sourceforge.net>
* lib/scnsave.c: Multi-monitor support.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/w32api/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/w32api/lib/scrnsave.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index e6e367a7b..4e84e4d52 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -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. diff --git a/winsup/w32api/lib/scrnsave.c b/winsup/w32api/lib/scrnsave.c index fe3348b4e..0dffd2231 100644 --- a/winsup/w32api/lib/scrnsave.c +++ b/winsup/w32api/lib/scrnsave.c @@ -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 */ |