Commit Graph

17 Commits

Author SHA1 Message Date
Deve
67948dfe28 xrandr: add support for rotated screens 2014-07-31 23:13:03 +02:00
Deve
73b45e71c7 xrandr: fixed issue with fullscreen window which was placed in wrong screen in some window managers.
In some cases main screen may have other position than (0, 0) - fixed it.
2014-07-30 21:30:43 +02:00
Deve
46f73e8ecc Some improvements for xrandr
- 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.
2014-07-28 19:23:03 +02:00
Deve
992c97258f Few more checks 2014-07-27 20:00:04 +02:00
Deve
0409a84fa0 Remove debug output 2014-07-27 19:36:40 +02:00
Deve
068b88cb4b Rename some variables, free memory etc. 2014-07-27 19:32:12 +02:00
Deve
85dd8d11a9 Add experimental support for multi-monitor on linux using xrandr.
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.
2014-07-27 00:48:34 +02:00
Deve
a56d6405dc Simplify code for checking best refresh rate on linux, which I added previously. 2014-06-25 22:22:54 +02:00
Deve
da41a06ae4 Add fallback for such exotic window managers as "larswm" which don't support netwm.
It's because Cand complains :)
2014-05-22 18:39:28 +02:00
Deve
e8b4926b0b Fixed #1313.
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.
2014-05-12 18:43:36 +02:00
Vincent Lejeune
ae3cf30070 Add a function to query supported glsl ver 2014-03-22 18:36:20 +01:00
Vincent Lejeune
0243546e4d Use an openGL 3.3 compatibility context when available. 2014-02-12 22:16:10 +01:00
Vincent Lejeune
afd5d1917c Fix Opengl pre 3.0 context creation. 2014-02-02 01:03:01 +01:00
Vincent Lejeune
38fc539520 Enable debug 2014-01-22 18:06:39 +01:00
Deve
dcfd55502c Added experimental change which allow to use alt-tab and other shortcuts on linux when game is run in fullscreen mode.
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.
2014-01-19 21:31:54 +01:00
vincentlj
8a33f14da5 OGL32CTX: Request a 3.0 backward compatible context in linux.
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
2014-01-05 17:48:36 +00:00
hikerstk
974deca5e1 Added our own irrlicht version - not used atm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11846 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-01 02:00:02 +00:00