aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu/UMenuText.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/UMenuText.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/UMenuText.pas')
-rw-r--r--Game/Code/Menu/UMenuText.pas9
1 files changed, 5 insertions, 4 deletions
diff --git a/Game/Code/Menu/UMenuText.pas b/Game/Code/Menu/UMenuText.pas
index f180a41b..3dff321a 100644
--- a/Game/Code/Menu/UMenuText.pas
+++ b/Game/Code/Menu/UMenuText.pas
@@ -11,7 +11,8 @@ interface
uses TextGL,
UTexture,
OpenGL12,
- SysUtils;
+ SysUtils,
+ SDL;
type
TText = class
@@ -102,7 +103,7 @@ begin
//Set Cursor Visible
SelectBlink := True;
- STicks := GettickCount div 550;
+ STicks := SDL_GetTicks() div 550;
end;
procedure TText.SetText(Value: String);
@@ -175,7 +176,7 @@ begin
//Set Cursor Visible
SelectBlink := True;
- STicks := GettickCount div 550;
+ STicks := SDL_GetTicks() div 550;
//Exit if there is no Need to Create Tiles
If (W <= 0) and (Pos('\n', Value) = 0) then
@@ -283,7 +284,7 @@ begin
//If Selected Set Blink...
if SelectBool then
begin
- I := Gettickcount div 550;
+ I := SDL_GetTicks() div 550;
if I <> STicks then
begin //Change Visability
STicks := I;