- choose best available refresh rate
- if resolution doesn't exist, choose first available
- other minor changes.
Works fine with Gnome, but I notices some issues on Openbox and Unity.
Now you can play STK on one screen and watch TV on the second ;-)
Currently I use first (main) screen. We can detect from which screen STK was executed using xinerama.
Will be improved.
In some cases STK was barely playable because of very low refresh rates (25-30Hz).
This may be caused by last changes in display drivers. I remember that previously refresh rates for resolution were in order from the lowest to the greatest. Now I see it in reversed order.
Irrlicht didn't check refresh rates and always set the last available for specified resolution.
Now we use the highest available refresh rate.
Perhaps we should use xrandr library instead of vidmode. It should be much smarter and maybe would solve some multimonitor issues.
This method is used in many other projects and should work good. Currently modern games
use window manager fullscreen rather than grab whole mouse and keyboard.
Tested on Gnome, Unity and Openbox and it works well. Though it should be tested also on
other desktop environments.
Also performance impact should be tested.
I added simple workaround for Gnome, which sometimes creates fullscreen window smaller
than display.
If some problems will occur, feel free to revert it.
This allows to enable ARB_DEBUG_OUTPUT extension.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14924 178a84e3-b1eb-0310-8ba1-8eac791a3b58