Mercurial > sdl-ios-xcode
changeset 2529:e1d5d16e88a8 gsoc2008_force_feedback
Can't believe I missed this typo.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 08:06:57 +0000 |
parents | 50414589501e |
children | 22ce87690b41 |
files | src/haptic/darwin/SDL_syshaptic.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:06:06 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:06:57 2008 +0000 @@ -341,7 +341,7 @@ * Sets the direction. */ static int -SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes ) +SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int naxes ) { LONG *rglDir; @@ -352,12 +352,12 @@ } /* Has axes. */ - rglDir = SDL_malloc( sizeof(LONG) * axes ); + rglDir = SDL_malloc( sizeof(LONG) * naxes ); if (rglDir == NULL) { SDL_OutOfMemory(); return -1; } - SDL_memset( rglDir, 0, sizeof(LONG) * axes ); + SDL_memset( rglDir, 0, sizeof(LONG) * naxes ); effect->rglDirection = rglDir; switch (dir->type) {