Fixed another compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 20 Jul 2013 20:12:36 -0400
changeset 7485 6ffa71faa50b
parent 7484 c6c4f8719af6
child 7486 c074c0b23916
Fixed another compiler warning. This one is compliments of the FreeBSD buildbot finally having the X11 libraries installed. :)
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Sat Jul 20 19:59:31 2013 -0400
+++ b/src/video/x11/SDL_x11modes.c	Sat Jul 20 20:12:36 2013 -0400
@@ -860,7 +860,6 @@
 int
 X11_GetDisplayBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect * rect)
 {
-    Display *display = ((SDL_VideoData *) _this->driverdata)->display;
     SDL_DisplayData *data = (SDL_DisplayData *) sdl_display->driverdata;
 
     rect->x = data->x;
@@ -871,6 +870,7 @@
 #if SDL_VIDEO_DRIVER_X11_XINERAMA
     /* Get the real current bounds of the display */
     if (data->use_xinerama) {
+        Display *display = ((SDL_VideoData *) _this->driverdata)->display;
         int screencount;
         XineramaScreenInfo *xinerama = XineramaQueryScreens(display, &screencount);
         if (xinerama) {