Magellan Linux

Annotation of /trunk/libsdl/patches/libsdl-1.2.11-xinerama-head-0.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 882 byte(s)
-import

1 niro 144 http://bugs.gentoo.org/145917
2    
3     --- SDL-1.2.11/src/video/x11/SDL_x11modes.c
4     +++ SDL-1.2.11/src/video/x11/SDL_x11modes.c
5     @@ -509,7 +509,7 @@ int X11_GetVideoModes(_THIS)
6     /* Query Xinerama extention */
7     if ( CheckXinerama(this, &xinerama_major, &xinerama_minor) ) {
8     /* Find out which screen is the desired one */
9     - int desired = 0;
10     + int desired = -1;
11     int screens;
12     int w, h;
13     SDL_NAME(XineramaScreenInfo) *xinerama;
14     @@ -630,7 +630,7 @@ int X11_GetVideoModes(_THIS)
15     /* XVidMode */
16     if ( !use_xrandr &&
17     #if SDL_VIDEO_DRIVER_X11_XINERAMA
18     - (!use_xinerama || xinerama_info.screen_number == 0) &&
19     + (!use_xinerama || xinerama_info.screen_number == -1) &&
20     #endif
21     CheckVidMode(this, &vm_major, &vm_minor) &&
22     SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display, SDL_Screen,&nmodes,&modes) )