From e3b758c6f040946cdbdfe2473def2ce14f327873 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 1 Oct 2011 17:33:02 +0000 Subject: 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 --- src/Fl_x.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 # include # include -#ifdef HAVE_XRANDR +#if HAVE_XRANDR #include 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(); -- cgit v1.2.3