aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu/UMenuButton.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/UMenuButton.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/UMenuButton.pas')
-rw-r--r--Game/Code/Menu/UMenuButton.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Menu/UMenuButton.pas b/Game/Code/Menu/UMenuButton.pas
index 93b987b7..e5a6d45b 100644
--- a/Game/Code/Menu/UMenuButton.pas
+++ b/Game/Code/Menu/UMenuButton.pas
@@ -4,7 +4,7 @@ interface
{$I switches.inc}
-uses TextGL, UTexture, OpenGL12, UMenuText;
+uses TextGL, UTexture, OpenGL12, UMenuText,SDL;
type
CButton = class of TButton;
@@ -291,7 +291,7 @@ begin
begin
if (FadeProgress < 1) and (FadeProgress > 0) then
begin
- Tick := GetTickCount div 16;
+ Tick := SDL_GetTicks() div 16;
if (Tick <> FadeLastTick) then
begin
FadeLastTick := Tick;