aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-26 14:34:24 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-26 14:34:24 +0000
commit790ec2c6f3430b4029fc7c49865336db07c129b9 (patch)
tree9a293846ab2b4e633608d3316ab102d52f99e539
parent17058a11ccd8e419dbb2ec370302128f2265fd1c (diff)
downloadusdx-790ec2c6f3430b4029fc7c49865336db07c129b9.tar.gz
usdx-790ec2c6f3430b4029fc7c49865336db07c129b9.tar.xz
usdx-790ec2c6f3430b4029fc7c49865336db07c129b9.zip
[Alt+Return] enabled
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@890 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UMain.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas
index 21e17393..ddcad686 100644
--- a/Game/Code/Classes/UMain.pas
+++ b/Game/Code/Classes/UMain.pas
@@ -457,8 +457,9 @@ Begin
if (Event.key.keysym.sym = SDLK_KP_ENTER) then
Event.key.keysym.sym := SDLK_RETURN;
- if (Event.key.keysym.sym = SDLK_F11 ) OR
- (Event.key.keysym.sym = KMOD_ALT and SDLK_RETURN ) then // toggle full screen
+ if (Event.key.keysym.sym = SDLK_F11) or
+ ((Event.key.keysym.sym = SDLK_RETURN) and
+ ((Event.key.keysym.modifier and KMOD_ALT) <> 0)) then // toggle full screen
begin
Ini.FullScreen := integer( not boolean( Ini.FullScreen ) );