• Sam Lantinga's avatar
    Fixed bug #562 · b0f6c3e9
    Sam Lantinga authored
    this patch by Diego Pettenò <flameeyes@gentoo.org> for SDL-1.2:
    
    The attached patch applies over latest ~arch SDL version, and allows to use the
    xinerama support to launch an application full screened on the head "0".
    
    The SDL_VIDEO_FULLSCREEN_HEAD environment variable sets the head on which the
    full screen will be displayed, but if you set it to 0, the code simply ignores
    it as unset. My patch changes the unset value to -1, so that the 0 value can be
    used correctly. Without this, trying to get fullscreen on head 0 would get the
    same result than not having xinerama enabled at all.
    
    http://sources.gentoo.org/media-libs/libsdl/files/libsdl-1.2.11-xinerama-head-0.patch
    
    SDL-1.3 doesnt seem to have any code like this, but it's still good for SDL-1.2
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403841
    b0f6c3e9
SDL_x11modes.c 35 KB