summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-10-01 17:33:02 +0000
committerManolo Gouy <Manolo>2011-10-01 17:33:02 +0000
commite3b758c6f040946cdbdfe2473def2ce14f327873 (patch)
treeb4e7f8e3c3d295a5bd9496cc702d4c7201a9327f
parent95692bf2876398cad83afb767e488e6886a4e6bc (diff)
Fix STR#2724: #if HAVE_XRANDR instead of #ifdef
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_x.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 83c68dd2a..5b58a8ca3 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -43,7 +43,7 @@
# include <X11/Xlocale.h>
# include <X11/Xlib.h>
# include <X11/keysym.h>
-#ifdef HAVE_XRANDR
+#if HAVE_XRANDR
#include <X11/extensions/Xrandr.h>
static int randrEventBase = -1;
#endif
@@ -642,7 +642,7 @@ void fl_open_display(Display* d) {
#if !USE_COLORMAP
Fl::visual(FL_RGB);
#endif
-#ifdef HAVE_XRANDR
+#if HAVE_XRANDR
int error_base;
if (XRRQueryExtension(d, &randrEventBase, &error_base))
XRRSelectInput(d, RootWindow(d, fl_screen), RRScreenChangeNotifyMask);
@@ -932,7 +932,7 @@ int fl_handle(const XEvent& thisevent)
if ( XFilterEvent((XEvent *)&xevent, 0) )
return(1);
-#ifdef HAVE_XRANDR
+#if HAVE_XRANDR
if( randrEventBase >= 0 && xevent.type == randrEventBase + RRScreenChangeNotify) {
XRRUpdateConfiguration (&xevent);
Fl::call_screen_init();