![]() |
Problem with multiple displays under linux with SDL 1.2.x | ![]() |
René Dudfield
Guest
![]() |
![]() |
Hi,
One hack is to see the aspect ratio is very wide, and if so use half(or a division of a standardish aspect if they have 3 monitors) the width. Then set the position of the window based on that guess. Use the SDL_VIDEO_WINDOW_POS="x,y" environment variable to set the position (then re-init). Otherwise, SDL 1.2 does not do multiple monitors. Or wait for SDL 1.3 to be released ; Because that supports multi-monitors on some platforms. cu! On Mon, Dec 19, 2011 at 10:08 PM, Julian Mayer wrote:
|
||||||||||||
|
![]() |
Problem with multiple displays under linux with SDL 1.2.x | ![]() |
Julian Mayer
Guest
![]() |
![]() |
Am 20.12.2011 um 18:18 schrieb René Dudfield:
hello thanks for your response, i'm looking forward to a stable SDL 1.3 release. because i investigated this issue some more i want to clarify on what i previously said. the problem here was/is a combination of problems in my game, SDL and the MESA driver. the problem in SDL as previously mentioned is that is reports the resolutions of BOTH displays combined as the current (SDL_GetVideoInfo) resolution. i don't believe thats thats the way SDL_GetVideoInfo() works on the mac/windows or even on linux with other setups. the other problem the user reported is that SDL is not able to correctly determine all supported resolutions, but i believe this is a known issue under linux. the problem in MESA is that it doesn't support FSAA and trying to create a context with FSAA enabled currently always fails with the MESA video drivers. the problem in my game was that it would always fall back to the current resolution first and as a last resort would disable FSAA. this means context creation would always fail because of FSAA and the resolution would always be changed to the incorrectly reported current resolution that spans both displays, i.e. the symptoms i reported - the game always spanning always both displays even when forcing a lower resolution and forcing SDL_VIDEO_FULLSCREEN_HEAD. bye, julian _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|