From b0d00f7a533f4f6fbcdf7916eeadc93cc6d72ed5 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Wed, 3 Oct 2007 23:34:14 +0000 Subject: [PATCH] 2007-10-03 Frank Fesevur * lib/scnsave.c: Multi-monitor support. --- winsup/w32api/ChangeLog | 4 ++++ 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 + + * lib/scnsave.c: Multi-monitor support. + 2007-08-03 Chris Sutcliffe * 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 */