Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compile error - had work in progress in there.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 3, 2012
1 parent 00b4753 commit 150c1ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 150c1ea

Please sign in to comment.