SDL: Another fix for SDL_Delay.

git-svn-id: svn://kolibrios.org@9875 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2022-09-01 19:32:56 +00:00
parent 6c347146ee
commit c56129836a

View File

@ -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)