src/video/x11/SDL_x11modes.c
changeset 7485 6ffa71faa50b
parent 7431 0fc94f315dac
child 7677 871d43c6968a
     1.1 --- a/src/video/x11/SDL_x11modes.c	Sat Jul 20 19:59:31 2013 -0400
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Sat Jul 20 20:12:36 2013 -0400
     1.3 @@ -860,7 +860,6 @@
     1.4  int
     1.5  X11_GetDisplayBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect * rect)
     1.6  {
     1.7 -    Display *display = ((SDL_VideoData *) _this->driverdata)->display;
     1.8      SDL_DisplayData *data = (SDL_DisplayData *) sdl_display->driverdata;
     1.9  
    1.10      rect->x = data->x;
    1.11 @@ -871,6 +870,7 @@
    1.12  #if SDL_VIDEO_DRIVER_X11_XINERAMA
    1.13      /* Get the real current bounds of the display */
    1.14      if (data->use_xinerama) {
    1.15 +        Display *display = ((SDL_VideoData *) _this->driverdata)->display;
    1.16          int screencount;
    1.17          XineramaScreenInfo *xinerama = XineramaQueryScreens(display, &screencount);
    1.18          if (xinerama) {