From 790ec2c6f3430b4029fc7c49865336db07c129b9 Mon Sep 17 00:00:00 2001 From: tobigun Date: Tue, 26 Feb 2008 14:34:24 +0000 Subject: [Alt+Return] enabled git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@890 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UMain.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Game/Code') 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 ) ); -- cgit v1.2.3