forked from KolibriOS/kolibrios
SDL: Another fix for SDL_Delay.
git-svn-id: svn://kolibrios.org@9875 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6c347146ee
commit
c56129836a
@ -58,10 +58,7 @@ Uint32 SDL_GetTicks (void)
|
||||
}
|
||||
|
||||
void SDL_Delay(unsigned ms){
|
||||
unsigned start = SDL_GetTicks();
|
||||
do{
|
||||
_ksys_delay(1);
|
||||
}while (SDL_GetTicks()-start < ms);
|
||||
_ksys_delay(ms/10+(ms%10>0));
|
||||
}
|
||||
|
||||
int SDL_SYS_TimerInit(void)
|
||||
|
Loading…
Reference in New Issue
Block a user