aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu/UDisplay.pas
diff options
context:
space:
mode:
authorf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-01 01:48:40 +0000
committerf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-01 01:48:40 +0000
commit26cf54a7af88106fb12326aa92279c362ba0e0c2 (patch)
treeaa10ac1e2c9d99cd2a99b23e1b13f814085ee478 /Game/Code/Menu/UDisplay.pas
parenta6084b6fbc75ac6cb50dae964d34949f79a4be98 (diff)
downloadusdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.tar.gz
usdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.tar.xz
usdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.zip
Replaced GetTickCount with SDL_GetTicks
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@994 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Menu/UDisplay.pas')
-rw-r--r--Game/Code/Menu/UDisplay.pas6
1 files changed, 3 insertions, 3 deletions
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;