Andy Hood points out that `#ifdef MONITOR_DEFAULTTONEAREST' would
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 16 Dec 2003 18:28:43 +0000 (18:28 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 16 Dec 2003 18:28:43 +0000 (18:28 +0000)
benefit from _also_ being conditional on NO_MULTIMON not being
defined, to prevent the possibility of only half the multimon code
being included.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3644 cda61777-01e9-0310-a592-d414129be87e

window.c

index a039ed3..c76b083 100644 (file)
--- a/window.c
+++ b/window.c
@@ -4584,7 +4584,7 @@ int is_full_screen()
  * one monitor is present. */
 static int get_fullscreen_rect(RECT * ss)
 {
-#ifdef MONITOR_DEFAULTTONEAREST
+#if defined(MONITOR_DEFAULTTONEAREST) && !defined(NO_MULTIMON)
        HMONITOR mon;
        MONITORINFO mi;
        mon = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST);