Subversion Repositories Kolibri OS

Rev

Rev 9202 | Rev 9288 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9202 Rev 9211
Line 83... Line 83...
83
	unsigned curtime;
83
	unsigned curtime;
84
	__asm__ ("int $0x40" : "=a"(curtime) : "a"(26),"b"(9));
84
	__asm__ ("int $0x40" : "=a"(curtime) : "a"(26),"b"(9));
85
	return (curtime-starttime)*10;
85
	return (curtime-starttime)*10;
86
}
86
}
Line 87... Line 87...
87
 
87
 
88
void SDL_Delay (Uint32 ms)
-
 
89
{
-
 
90
    __kos__delay100(ms);
88
void SDL_Delay(unsigned ms){
91
/*  Uint32 start = SDL_GetTicks();
89
    unsigned start = SDL_GetTicks();
92
  do
90
    do{
93
    __asm__("int $0x40" :: "a"(68),"b"(1));
91
       __kos__delay100(1);
94
  while (SDL_GetTicks()-start < ms);*/
92
    }while (SDL_GetTicks()-start < ms);
Line 95... Line 93...
95
}
93
}
96
 
94
 
97
int SDL_SYS_TimerInit(void)
95
int SDL_SYS_TimerInit(void)