Fixed compile error - had work in progress in there.
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 12:04:30 -0700
changeset 6538 05cf19d1eb53
parent 6537 85cf169db434
child 6539 c76274e7f32a
Fixed compile error - had work in progress in there.
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Wed Oct 03 11:33:09 2012 -0700
+++ b/src/video/x11/SDL_x11modes.c	Wed Oct 03 12:04:30 2012 -0700
@@ -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 @@
         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 @@
 
                     /* 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 */