• Show log

    Commit

  • Hash : 59d34bc3
    Author : Sam Lantinga
    Date : 2015-06-15T23:44:08

    Fixed bug 3015 - grab mouse inconsistent state
    
    Martin Gerhardy
    
    Not sure - but I think there might be a logic flaw in SDL_SetWindowGrab.
    
    The problem here is that this modifies the window flags and e.g. sets
    SDL_WINDOW_INPUT_GRABBED - but the _this->grabbed_window pointer is not
    yet set.
    
    Then in SDL_UpdateWindowGrab the _this->grabbed_window pointer is only
    set if the function pointer _this->SetWindowGrab is not NULL. But if
    this is NULL, the _this->grabbed_window pointer is never set, but every
    future call to any of the grab functions include an assert for:
    SDL_assert(!_this->grabbed_window || ((_this->grabbed_window->flags &
    SDL_WINDOW_INPUT_GRABBED) != 0));
    
    That means the first call works, the second always fails and triggers
    the assert.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    http://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)