Fixed another compiler warning.
This one is compliments of the FreeBSD buildbot finally having the X11 libraries installed. :) --HG-- extra : amend_source : f57bb1d54a19cb773358f8caefd40d477c01b05f
This commit is contained in:
parent
bc019db86e
commit
f2029f2af8
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,6 @@ X11_QuitModes(_THIS)
|
|||
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 @@ X11_GetDisplayBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect * rect)
|
|||
#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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue