• Sam Lantinga's avatar
    Date: Wed, 9 Apr 2003 18:21:33 -0230 · bedc128a
    Sam Lantinga authored
    From: Stephen Anthony <stephena@roadrunner.nf.net>
    Subject: [SDL] First patch concerning  4.3 and refresh rates
    
    OK, here's my first draft of the patch for the above subject.
    
    A short explanation:
    
    X 4.3 introduces many more modelines than older versions.  This would be
    fine, except it introduces many modes with the *same* resolution but
    different refresh rates.  And SDL won't necessarily pick the one with the
    highest refresh rate.
    
    So this patch restores SDL to X 4.2 functionality.  That is, there is only
    ever one refresh rate *per* resolution, and it is the highest possible.
    This functionality can be totally disabled by using the environment
    variable 'SDL_VIDEO_X11_USE_ALL_MODES' set equal to 1.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40615
    bedc128a
SDL_x11modes.c 28 KB