SDL/src/events
Sam Lantinga d50dd652a3 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
2014-04-17 19:52:15 -07:00
..
blank_cursor.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
default_cursor.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
scancodes_darwin.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
scancodes_linux.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
scancodes_windows.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
scancodes_xfree86.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_clipboardevents_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_clipboardevents.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_dropevents_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_dropevents.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_events_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_events.c Fixed bug 2414 - Execute event watchers in the order they were added 2014-02-22 15:27:11 -08:00
SDL_gesture_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_gesture.c Fixed bug 2503 - Loop indexing and event union errors in SDL_gesture.c 2014-04-17 19:52:15 -07:00
SDL_keyboard_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_keyboard.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_mouse_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_mouse.c Fixed bug 2368 - Security Software is blocking RegisterRawInputDevices() 2014-03-01 09:59:06 -08:00
SDL_quit.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_sysevents.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_touch_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_touch.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_windowevents_c.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_windowevents.c Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00