Opened 8 years ago
#3946 new enhancement
Xinerama 0ad across both screens
Reported by: | Markus Raab | Owned by: | |
---|---|---|---|
Priority: | If Time Permits | Milestone: | Backlog |
Component: | Core engine | Keywords: | sdl xinerama dual multi monitor setup |
Cc: | Patch: |
Description
0ad used to be started across both screens. With SDL2 (around alpha 17?) it now only starts at one screen.
I could not find any option how to change it. Even if the 0ad options have the correct resolution (over both screens), it is still only displayed at one screen.
Following options did not change anything:
SDL_VIDEO_X11_XINERAMA=1 SDL_VIDEO_X11_XRANDR=1 0ad SDL_VIDEO_FULLSCREEN_HEAD=0 0ad SDL_VIDEO_DRIVER_X11_XINERAMA="1" 0ad
The legacy full screen option also is on one screen and the mouse has an offset, so that its hardly possible to use the menu:
SDL_VIDEO_X11_LEGACY_FULLSCREEN=1 0ad
Finally the "best" option is:
SDL_VIDEO_X11_XINERAMA=0 SDL_VIDEO_X11_XRANDR=3840x1200 0ad
It actually uses both screens, but the right half is black.
I could not get used to the windowed mode, because there the border for scrolling is too tiny.
Attached is a file that shows all getenv calls of 0ad (recorded with elektrify-getenv from Elektra http://www.libelektra.org)
getenv calls of 0ad