FS#36765 - [sdl2] does not use Xrandr nor Xinerama
Attached to Project:
Arch Linux
Opened by Rodrigo Rivas Costa (rodrigorc) - Sunday, 01 September 2013, 17:21 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 01 September 2013, 22:29 GMT
Opened by Rodrigo Rivas Costa (rodrigorc) - Sunday, 01 September 2013, 17:21 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 01 September 2013, 22:29 GMT
|
Details
Description:
The cmake scripts search for the headers of Xrandr and Xinerama, and uses them only if they are found. It seems that the build machine did not have them available so these libraries are not used. The end result is that SDL2 cannot change the screen resolution at all: only the current resolution is available. It can be checked that these are not used with: $ strings libSDL2-2.0.so | grep -i '\(xrandr\)\|\(xinerama\)' I rebuilt the package from ABS without changes -but with libxrandr and libxinerama installed, and this very same command gives a lot of output. Maybe it can be solved simply by adding 'libxrandr' and 'libxinerama' to the makedepends. Additional info: * sdl2-2.0.0-3, both i686 and x86_64. Steps to reproduce: Any program that calls `SDL_GetNumDisplayModes(0)` will get `1`, the current video mode, and will be unable to select any other. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Sunday, 01 September 2013, 22:29 GMT
Reason for closing: Fixed
Additional comments about closing: sdl2-2.0.0-4
Sunday, 01 September 2013, 22:29 GMT
Reason for closing: Fixed
Additional comments about closing: sdl2-2.0.0-4
Comment by
Sven-Hendrik Haase (Svenstaro) -
Sunday, 01 September 2013, 22:29 GMT
Good catch.