From: simon Date: Tue, 16 Dec 2003 18:28:43 +0000 (+0000) Subject: Andy Hood points out that `#ifdef MONITOR_DEFAULTTONEAREST' would X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/5d145a14925b0ea8a60af808252a7c3cf78f9631 Andy Hood points out that `#ifdef MONITOR_DEFAULTTONEAREST' would 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 --- diff --git a/window.c b/window.c index a039ed3b..c76b083d 100644 --- 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);