• Show log

    Commit

  • Hash : 5512eac6
    Author : Sam Lantinga
    Date : 2014-02-22T15:27:11

    Fixed bug 2414 - Execute event watchers in the order they were added
    
    Leonardo
    
    Event watchers are being executed on the inverse order they are added because they are added to the head of the SDL_event_watchers list.
    
    Since watchers are allowed to change events before they are reported (they shouldn't, imo), this breaks code that rely on watcher execution order (such as distributed event handling).
    
    An easy scenario to see this behaving weird to the user is if you add an event watcher to check mouse coordinates and check them again in your event loop. If you add the watcher after renderer's one (which always happens after you have initialized renderer), you get the same event but different coordinates.
    
    The proposed patch adds the event watcher in the tail of the list, not in the beginning, and correctly fixes this problem.
    

  • 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