From 45aa4978132d244647213a6cb3f44fe4a657a387 Mon Sep 17 00:00:00 2001 From: Michael Fitzmayer Date: Tue, 3 Jun 2025 21:59:03 +0200 Subject: [PATCH] [Nokia N-Gage] Fix SDL_GetPerformanceFrequency and SDL_GetPerformanceCounter --- src/timer/ngage/SDL_systimer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/timer/ngage/SDL_systimer.cpp b/src/timer/ngage/SDL_systimer.cpp index d2e1cce904..f3039bd0ec 100644 --- a/src/timer/ngage/SDL_systimer.cpp +++ b/src/timer/ngage/SDL_systimer.cpp @@ -29,12 +29,13 @@ extern "C" { Uint64 SDL_GetPerformanceCounter(void) { - return (Uint64)User::TickCount(); + return static_cast(User::TickCount()); } 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)