mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
[Nokia N-Gage] Fix SDL_GetPerformanceFrequency and SDL_GetPerformanceCounter
This commit is contained in:
@@ -29,12 +29,13 @@ extern "C" {
|
|||||||
|
|
||||||
Uint64 SDL_GetPerformanceCounter(void)
|
Uint64 SDL_GetPerformanceCounter(void)
|
||||||
{
|
{
|
||||||
return (Uint64)User::TickCount();
|
return static_cast<Uint64>(User::TickCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
Uint64 SDL_GetPerformanceFrequency(void)
|
Uint64 SDL_GetPerformanceFrequency(void)
|
||||||
{
|
{
|
||||||
return (Uint64)1000000u;
|
// On Symbian S60v1, tick frequency is 64 Hz => 1 tick = 15,625 microseconds.
|
||||||
|
return 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_SYS_DelayNS(Uint64 ns)
|
void SDL_SYS_DelayNS(Uint64 ns)
|
||||||
|
|||||||
Reference in New Issue
Block a user