From 150c1eaaf0fa2c749df492e862b80a9f780f49fc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Oct 2012 12:04:30 -0700 Subject: [PATCH] Fixed compile error - had work in progress in there. --- src/video/x11/SDL_x11modes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index d74ca090f..f67eb2388 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -25,7 +25,7 @@ #include "SDL_hints.h" #include "SDL_x11video.h" -#define X11MODES_DEBUG +/*#define X11MODES_DEBUG*/ static int get_visualinfo(Display * display, int screen, XVisualInfo * vinfo) @@ -532,7 +532,6 @@ X11_GetDisplayModes(_THIS, SDL_VideoDisplay * sdl_display) if (nsizes > 0) { int i, j; for (i = 0; i < nsizes; i++) { - get_xrandr_mode_size(XRRModeInfo *mode, Rotation rotation, int *w, int *h) mode.w = sizes[i].width; mode.h = sizes[i].height; @@ -740,7 +739,7 @@ set_best_resolution(Display * display, SDL_DisplayData * data, int w, int h, /* The CRT offset matches the Xinerama mode, let's hope it's the right one! */ #ifdef X11MODES_DEBUG - fprintf(stderr, "XRANDR: set_best_resolution, matched Xinerama screen %d to CRT %d at %d,%d\n", + fprintf(stderr, "XRANDR: set_best_resolution, matched Xinerama screen %d to CRT %ld at %d,%d\n", data->xinerama_info.screen_number, output_info->crtc, crtc->x, crtc->y); #endif /* Find out the best mode we can use */