aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/UDisplay.pas
diff options
context:
space:
mode:
authorbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-08-23 03:15:31 +0000
committerbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-08-23 03:15:31 +0000
commitcb50c854d301fffedc760a24ff363c69c41e3ad8 (patch)
tree96fb650ba4d161ecdce253f8be8545c06342fad7 /src/menu/UDisplay.pas
parentbd6edd76cbe2cdee409c050eee28292f0f1cbdb2 (diff)
downloadusdx-cb50c854d301fffedc760a24ff363c69c41e3ad8.tar.gz
usdx-cb50c854d301fffedc760a24ff363c69c41e3ad8.tar.xz
usdx-cb50c854d301fffedc760a24ff363c69c41e3ad8.zip
* limit to 60 FPS - be more energy friendly and laptop-friendly ;-)
* do not return any button-mouse-over-area when the mouse cursor is hidden - fixes certain access violations on windows git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3123 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/menu/UDisplay.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/menu/UDisplay.pas b/src/menu/UDisplay.pas
index 6191fb68..9a196a74 100644
--- a/src/menu/UDisplay.pas
+++ b/src/menu/UDisplay.pas
@@ -72,7 +72,6 @@ type
Cursor_X: double;
Cursor_Y: double;
Cursor_Pressed: boolean;
- Cursor_HiddenByScreen: boolean; // hides software cursor and deactivate auto fade in
// used for cursor fade out when there is no movement
Cursor_Visible: boolean;
@@ -84,6 +83,8 @@ type
{ called by MoveCursor and OnMouseButton to update last move and start fade in }
procedure UpdateCursorFade;
public
+ Cursor_HiddenByScreen: boolean; // hides software cursor and deactivate auto fade in, must be public for access in UMenuButton
+
NextScreen: PMenu;
CurrentScreen: PMenu;