Skip to content

Commit 45aa497

Browse files
committed
[Nokia N-Gage] Fix SDL_GetPerformanceFrequency and SDL_GetPerformanceCounter
1 parent 7457857 commit 45aa497

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/timer/ngage/SDL_systimer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ extern "C" {
2929

3030
Uint64 SDL_GetPerformanceCounter(void)
3131
{
32-
return (Uint64)User::TickCount();
32+
return static_cast<Uint64>(User::TickCount());
3333
}
3434

3535
Uint64 SDL_GetPerformanceFrequency(void)
3636
{
37-
return (Uint64)1000000u;
37+
// On Symbian S60v1, tick frequency is 64 Hz => 1 tick = 15,625 microseconds.
38+
return 64;
3839
}
3940

4041
void SDL_SYS_DelayNS(Uint64 ns)

0 commit comments

Comments
 (0)