mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Drop DGA mouse workaround
Is no longer supported in SDL2, so this workaround does nothing anymore. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
1cab428e6e
commit
37d8b1bfeb
1 changed files with 0 additions and 10 deletions
|
|
@ -296,16 +296,6 @@ static void ShutdownPs()
|
|||
|
||||
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("SDL library initialization failed: %s", SDL_GetError());
|
||||
|
|
|
|||
Loading…
Reference in a new issue