This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9819 for ps


Ignore:
Timestamp:
07/13/11 19:40:12 (13 years ago)
Author:
philip
Message:

Disable SDL's DGA mouse support by default, to fix Linux fullscreen mouse sensitivity problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/ps/GameSetup/GameSetup.cpp

    r9814 r9819  
    579579static void InitSDL()
    580580{
     581#if OS_LINUX
     582    // In fullscreen mode when SDL is compiled with DGA support, the mouse
     583    // sensitivity often appears to be unusably wrong (typically too low).
     584    // (This seems to be reported almost exclusively on Ubuntu, but can be
     585    // reproduced on Gentoo after explicitly enabling DGA.)
     586    // Disabling the DGA mouse appears to fix that problem, and doesn't
     587    // have any obvious negative effects.
     588    setenv("SDL_VIDEO_X11_DGAMOUSE", "0", 0);
     589#endif
     590
    581591    if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_NOPARACHUTE) < 0)
    582592    {
Note: See TracChangeset for help on using the changeset viewer.