This patch implements mode switching (resolution changing) for full-screen games. To use this code, compile blenderplayer with WITH_GHOST_SDL=ON, and then run a game that tries to set the resolution. See modeset_glsl.blend attached to
[#29747] for an example game.
This patch contains code from Quake 2 (GPL v2+) and bzflag (LGPL v2+).