Subversion Repositories Kolibri OS

Rev

Rev 9785 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9785 Rev 9875
Line 56... Line 56...
56
	unsigned curtime = _ksys_get_tick_count();
56
	unsigned curtime = _ksys_get_tick_count();
57
	return (curtime-starttime)*10;
57
	return (curtime-starttime)*10;
58
}
58
}
Line 59... Line 59...
59
 
59
 
60
void SDL_Delay(unsigned ms){
-
 
61
    unsigned start = SDL_GetTicks();
-
 
62
    do{
60
void SDL_Delay(unsigned ms){
63
       _ksys_delay(1);
-
 
64
    }while (SDL_GetTicks()-start < ms);
61
    _ksys_delay(ms/10+(ms%10>0));
Line 65... Line 62...
65
}
62
}
66
 
63
 
67
int SDL_SYS_TimerInit(void)
64
int SDL_SYS_TimerInit(void)