From fc31c286841cf746cc791ce436d54ed224cd1d52 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Sun, 31 May 2009 20:44:00 +0000 Subject: 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 --- src/menu/UDisplay.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/menu') 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)) -- cgit v1.2.3