Fixed compile error - had work in progress in there.
authorSam Lantinga
Wed, 03 Oct 2012 12:04:30 -0700
changeset 653805cf19d1eb53
parent 6537 85cf169db434
child 6539 c76274e7f32a
Fixed compile error - had work in progress in there.
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Wed Oct 03 11:33:09 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Wed Oct 03 12:04:30 2012 -0700
     1.3 @@ -25,7 +25,7 @@
     1.4  #include "SDL_hints.h"
     1.5  #include "SDL_x11video.h"
     1.6  
     1.7 -#define X11MODES_DEBUG
     1.8 +/*#define X11MODES_DEBUG*/
     1.9  
    1.10  static int
    1.11  get_visualinfo(Display * display, int screen, XVisualInfo * vinfo)
    1.12 @@ -532,7 +532,6 @@
    1.13          if (nsizes > 0) {
    1.14              int i, j;
    1.15              for (i = 0; i < nsizes; i++) {
    1.16 -                get_xrandr_mode_size(XRRModeInfo *mode, Rotation rotation, int *w, int *h)
    1.17                  mode.w = sizes[i].width;
    1.18                  mode.h = sizes[i].height;
    1.19  
    1.20 @@ -740,7 +739,7 @@
    1.21  
    1.22                      /* The CRT offset matches the Xinerama mode, let's hope it's the right one! */
    1.23  #ifdef X11MODES_DEBUG
    1.24 -                    fprintf(stderr, "XRANDR: set_best_resolution, matched Xinerama screen %d to CRT %d at %d,%d\n",
    1.25 +                    fprintf(stderr, "XRANDR: set_best_resolution, matched Xinerama screen %d to CRT %ld at %d,%d\n",
    1.26                          data->xinerama_info.screen_number, output_info->crtc, crtc->x, crtc->y);
    1.27  #endif
    1.28                      /* Find out the best mode we can use */