Disable SDL's DGA mouse support by default, to fix Linux fullscreen mouse sensitivity problems
This was SVN commit r9819.
This commit is contained in:
parent
7f74693052
commit
f28ae0d427
@ -578,6 +578,16 @@ static void InitRenderer()
|
||||
|
||||
static void InitSDL()
|
||||
{
|
||||
#if OS_LINUX
|
||||
// In fullscreen mode when SDL is compiled with DGA support, the mouse
|
||||
// sensitivity often appears to be unusably wrong (typically too low).
|
||||
// (This seems to be reported almost exclusively on Ubuntu, but can be
|
||||
// reproduced on Gentoo after explicitly enabling DGA.)
|
||||
// Disabling the DGA mouse appears to fix that problem, and doesn't
|
||||
// have any obvious negative effects.
|
||||
setenv("SDL_VIDEO_X11_DGAMOUSE", "0", 0);
|
||||
#endif
|
||||
|
||||
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_NOPARACHUTE) < 0)
|
||||
{
|
||||
LOGERROR(L"SDL library initialization failed: %hs", SDL_GetError());
|
||||
|
Loading…
Reference in New Issue
Block a user