Author: manolo
Date: 2011-10-01 10:33:02 -0700 (Sat, 01 Oct 2011)
New Revision: 9115
Log:
Fix STR#2724: #if HAVE_XRANDR instead of #ifdef

Modified:
   branches/branch-1.3/src/Fl_x.cxx

Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx    2011-10-01 16:52:00 UTC (rev 9114)
+++ branches/branch-1.3/src/Fl_x.cxx    2011-10-01 17:33:02 UTC (rev 9115)
@@ -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 @@
 #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 @@
   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();

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to