diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-06-13 16:32:31 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-06-13 16:32:31 +0300 |
commit | 37867df137f9d85f93c9f267e54fcd93e74d9e8f (patch) | |
tree | 032e64831016bf93dd992e9cadeb1280429c125c | |
parent | 886e3158cf5d95a2c2721e5eb9a1c3ac4461f805 (diff) |
Fix SDL_AddTimer dyncall signature. The timer callback is of form 'typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);'.
-rw-r--r-- | src/library_sdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index a131f424..68e2f8e8 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1810,7 +1810,7 @@ var LibrarySDL = { SDL_AddTimer: function(interval, callback, param) { return window.setTimeout(function() { - Runtime.dynCall('ii', callback, [interval, param]); + Runtime.dynCall('iii', callback, [interval, param]); }, interval); }, SDL_RemoveTimer: function(id) { |