From 26cf54a7af88106fb12326aa92279c362ba0e0c2 Mon Sep 17 00:00:00 2001 From: f1fth_freed0m Date: Tue, 1 Apr 2008 01:48:40 +0000 Subject: Replaced GetTickCount with SDL_GetTicks git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@994 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Menu/UDisplay.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Game/Code/Menu/UDisplay.pas') diff --git a/Game/Code/Menu/UDisplay.pas b/Game/Code/Menu/UDisplay.pas index 7ac5f9b2..74a55ea7 100644 --- a/Game/Code/Menu/UDisplay.pas +++ b/Game/Code/Menu/UDisplay.pas @@ -247,13 +247,13 @@ begin if not BlackScreen then NextScreen.onShow; - lastTime:=GetTickCount; // TODO: use cross-plattform SDL_GetTicks() instead + lastTime:=SDL_GetTicks(); if (S=2) or (Screens = 1) then myfade:=myfade+1; end; // end texture creation in first fading step //do some time-based fading - currentTime:=GetTickCount; // TODO: use cross-plattform SDL_GetTicks() instead + currentTime:=SDL_GetTicks(); if (currentTime > lastTime+30) and (S=1) then begin myfade:=myfade+4; @@ -462,7 +462,7 @@ begin glColor4f(0, 0, 0, 1); //Calculate FPS - Ticks := GetTickCount; // TODO: use cross-plattform SDL_GetTicks() instead + Ticks := SDL_GetTicks(); if (Ticks >= NextFPSSwap) then begin LastFPS := FPSCounter * 4; -- cgit v1.2.3