git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1620
7f0cb862-5218-0410-a997-
914c9d46530a
#include <GL/freeglut.h>
#include "../fg_internal.h"
#include <GL/freeglut.h>
#include "../fg_internal.h"
+#ifdef HAVE_X11_EXTENSIONS_XRANDR_H
static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
{
static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
{
-#ifdef HAVE_X11_EXTENSIONS_XRANDR_H
int event_base, error_base, ver_major, ver_minor, use_rate;
XRRScreenConfiguration *xrr_config = 0;
Status result = -1;
int event_base, error_base, ver_major, ver_minor, use_rate;
XRRScreenConfiguration *xrr_config = 0;
Status result = -1;
-#endif /* HAVE_X11_EXTENSIONS_XRANDR_H */
+#endif /* HAVE_X11_EXTENSIONS_XRANDR_H */
/*
* Remembers the current visual settings, so that
/*
* Remembers the current visual settings, so that
*/
void fgPlatformRememberState( void )
{
*/
void fgPlatformRememberState( void )
{
+# if defined(HAVE_X11_EXTENSIONS_XRANDR_H) | defined(HAVE_X11_EXTENSIONS_XF86VMODE_H)
int event_base, error_base;
int event_base, error_base;
/*
* Remember the current pointer location before going fullscreen
/*
* Remember the current pointer location before going fullscreen