• Show log

    Commit

  • Hash : f4b77110
    Author : Sam Lantinga
    Date : 2014-04-17T19:52:15

    Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c
    
    Lasse ??rni
    
    While enabling $1 gesture support in the Urho3D engine which uses SDL2 I detected some errors in the gesture code in SDL_gesture.c:
    
    - In the function SDL_SaveAllDollarTemplates() the following line should use index variable j instead of i:
    
        rtrn += SaveTemplate(&touch->dollarTemplate[i], dst);
    
    - In the function SDL_SaveDollarTemplate() the following code should use index variable j instead of i:
    
        if (touch->dollarTemplate[i].hash == gestureId) {
            return SaveTemplate(&touch->dollarTemplate[i], dst);
    
    - In the function SDL_SendGestureDollar() the x & y coordinates are being written to the mgesture structure, which results in garbage due to dgesture and mgesture being different data structures inside the union. The coordinates should be written to dgesture.x & dgesture.y respectively
    

  • 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_w kc3_lang_org thodg_l thodg_m www_kmx_io thodg
    Tags