From 4bc49798e468ea2f7dc379a14ab2757d007d5b8a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 8 Apr 2005 07:25:56 +0000 Subject: fixed Xinerama compile and link bug git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/screen_xywh.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index dd4b8ff5f..786886d07 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -34,12 +34,12 @@ // Number of screens... static int num_screens = 0; -#ifdef WIN32 - -#if !defined(HMONITOR_DECLARED) && (_WIN32_WINNT < 0x0500) -#define COMPILE_MULTIMON_STUBS -#include -#endif +#ifdef WIN32 + +#if !defined(HMONITOR_DECLARED) && (_WIN32_WINNT < 0x0500) +#define COMPILE_MULTIMON_STUBS +#include +#endif static RECT screens[16]; @@ -80,7 +80,7 @@ static void screen_init() { if (num_screens >= 16) break; } } -#elif defined(HAVE_XINERAMA) +#elif HAVE_XINERAMA # include // Screen data... @@ -143,7 +143,7 @@ void Fl::screen_xywh(int &x, int &y, int &w, int &h, int mx, int my) { } } } -#elif defined(HAVE_XINERAMA) +#elif HAVE_XINERAMA if (num_screens > 0) { int i; @@ -188,7 +188,7 @@ void Fl::screen_xywh(int &x, int &y, int &w, int &h, int n) { h = screens[n].height; return; } -#elif defined(HAVE_XINERAMA) +#elif HAVE_XINERAMA if (num_screens > 0 && n >= 0 && n < num_screens) { x = screens[n].x_org; y = screens[n].y_org; -- cgit v1.2.3