Mercurial > sdl-ios-xcode
diff src/timer/nds/SDL_systimer.c @ 2698:e1da92da346c gsoc2008_nds
Clean up.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Wed, 27 Aug 2008 04:23:38 +0000 |
parents | 0b395a60deff |
children |
line wrap: on
line diff
--- a/src/timer/nds/SDL_systimer.c Thu Aug 21 12:38:21 2008 +0000 +++ b/src/timer/nds/SDL_systimer.c Wed Aug 27 04:23:38 2008 +0000 @@ -37,7 +37,7 @@ void SDL_StartTicks(void) { - if(!timer_alive) { + if (!timer_alive) { SDL_SYS_TimerInit(); SDL_SYS_StartTimer(); } @@ -55,8 +55,9 @@ SDL_Delay(Uint32 ms) { Uint32 start = SDL_GetTicks(); - while(timer_alive) { - if((SDL_GetTicks() - start) >= ms) break; + while (timer_alive) { + if ((SDL_GetTicks() - start) >= ms) + break; } } @@ -71,8 +72,10 @@ return (0); } -void NDS_TimerInterrupt(void) { - timer_ticks++; +void +NDS_TimerInterrupt(void) +{ + timer_ticks++; } /* This is only called if the event thread is not running */