OSDN Git Service

https://sourceforge.net/tracker/?func=detail&aid=3367548&group_id=2435&atid=102435
authorEarnie Boyd <earnie@users.sourceforge.net>
Thu, 25 Oct 2012 20:09:01 +0000 (16:09 -0400)
committerEarnie Boyd <earnie@users.sourceforge.net>
Thu, 25 Oct 2012 20:09:01 +0000 (16:09 -0400)
* lib/scnsave.c: Multi-monitor support for Win95 and NT4.

ChangeLog
src/libscrnsave/scrnsave.c

index 4af179c..416e60e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-25  Frank Fesevur  <ffes@users.sourceforge.net>
+
+       https://sourceforge.net/tracker/?func=detail&aid=3367548&group_id=2435&atid=102435
+
+       * lib/scnsave.c: Multi-monitor support for Win95 and NT4.
+
 2012-10-23  Earnie Boyd  <earnie@users.sourceforge.net>
 
        https://sourceforge.net/tracker/?func=detail&aid=3166132&group_id=2435&atid=102435
index 38b2ce3..4143d03 100644 (file)
@@ -217,12 +217,17 @@ static int LaunchScreenSaver(HWND hParent)
     }
   else
     {
-      style = WS_POPUP;
+      style = WS_POPUP | WS_VISIBLE;
       rc.left = GetSystemMetrics(SM_XVIRTUALSCREEN);
       rc.top = GetSystemMetrics(SM_YVIRTUALSCREEN);
       rc.right = GetSystemMetrics(SM_CXVIRTUALSCREEN);
       rc.bottom = GetSystemMetrics(SM_CYVIRTUALSCREEN);
-      style |= WS_VISIBLE;
+
+      if (rc.right == 0)
+       rc.right = GetSystemMetrics(SM_CXSCREEN);
+
+      if (rc.bottom == 0)
+       rc.bottom = GetSystemMetrics(SM_CYSCREEN);
     }
 
   /* create main screen saver window */