]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Andy Hood points out that `#ifdef MONITOR_DEFAULTTONEAREST' would
authorSimon Tatham <anakin@pobox.com>
Tue, 16 Dec 2003 18:28:43 +0000 (18:28 +0000)
committerSimon Tatham <anakin@pobox.com>
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.

[originally from svn r3644]

window.c

index a039ed3bf5e5c3bb40419c9eb20d6cd1f872d52f..c76b083dc7993d0deeb230c157e18e4c3dead13d 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);