aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-31 20:44:00 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-31 20:44:00 +0000
commitfc31c286841cf746cc791ce436d54ed224cd1d52 (patch)
tree54467eb3750e532c2c52a93af176cf914f4d2c22 /src
parentc966985d9af377f4c146d5ab0f241f31d5984676 (diff)
downloadusdx-fc31c286841cf746cc791ce436d54ed224cd1d52.tar.gz
usdx-fc31c286841cf746cc791ce436d54ed224cd1d52.tar.xz
usdx-fc31c286841cf746cc791ce436d54ed224cd1d52.zip
software cursor is now hidden on startup
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1791 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/menu/UDisplay.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/menu/UDisplay.pas b/src/menu/UDisplay.pas
index 10a80c00..e4e2839d 100644
--- a/src/menu/UDisplay.pas
+++ b/src/menu/UDisplay.pas
@@ -155,7 +155,7 @@ begin
OSD_LastError := 'No Errors';
// software cursor default values
- Cursor_LastMove := SDL_GetTicks;
+ Cursor_LastMove := 0;
Cursor_Visible := false;
Cursor_Pressed := false;
Cursor_X := -1;
@@ -405,7 +405,8 @@ begin
Ticks := SDL_GetTicks;
- if not Cursor_Visible then
+ { fade in on movement (or button press) if not first movement }
+ if (not Cursor_Visible) and (Cursor_LastMove <> 0) then
begin
if (Cursor_Fade) then // we use a trick here to consider progress of fade out
Cursor_LastMove := Ticks - round(Cursor_FadeIn_Time * (1 - (Ticks - Cursor_LastMove)/Cursor_FadeOut_Time))