libsdl-org / SDL-1.2

Simple Directmedia Layer, 1.2 branch ... ***DEPRECATED***, please use https://github.com/libsdl-org/SDL for new projects!
https://libsdl.org
GNU Lesser General Public License v2.1
98 stars 81 forks source link

Comma-separated lists in audio/video driver environment variables #843

Closed dos1 closed 3 years ago

dos1 commented 3 years ago

Adapted from SDL2: https://github.com/libsdl-org/SDL/pull/4267 https://github.com/libsdl-org/SDL/pull/4618

This is super helpful for instance when setting SDL_VIDEODRIVER globally to prefer Wayland. Since both SDL1 and SDL2 share the variable name and there's no wayland driver in SDL1, it fails to initialize video subsystem, while with this change it can nicely fallback to x11.