aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-22 16:33:40 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-22 16:33:40 +0000
commit7ba2a6cc5144715c8b1e48356dc06731b3ba1298 (patch)
tree3a3757d6325a69d066c477e91f4060abdff7072e /Game/Code
parent754d71a59b7d07a12c7e7d198b7fdc3c9e1bdc5e (diff)
downloadusdx-7ba2a6cc5144715c8b1e48356dc06731b3ba1298.tar.gz
usdx-7ba2a6cc5144715c8b1e48356dc06731b3ba1298.tar.xz
usdx-7ba2a6cc5144715c8b1e48356dc06731b3ba1298.zip
workaround for alt+tab bug
new acinerella.dll git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2140 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UMain.pas11
-rw-r--r--Game/Code/UltraStar.dpr2
2 files changed, 10 insertions, 3 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas
index feaaedf1..19607404 100644
--- a/Game/Code/Classes/UMain.pas
+++ b/Game/Code/Classes/UMain.pas
@@ -161,11 +161,18 @@ Begin
Begin
// beep;
Case Event.type_ Of
- SDL_QUITEV: begin
+ SDL_ACTIVEEVENT: //workaround for alt-tab bug
+ begin
+ if (Event.active.gain=0) then
+ SDL_SetModState(0);
+ end;
+
+ SDL_QUITEV:
+ begin
Display.Fade := 0;
Display.NextScreenWithCheck := nil;
Display.CheckOK := True;
- end;
+ end;
{ SDL_MOUSEBUTTONDOWN:
With Event.button Do
Begin
diff --git a/Game/Code/UltraStar.dpr b/Game/Code/UltraStar.dpr
index b597ff95..ac5eeb89 100644
--- a/Game/Code/UltraStar.dpr
+++ b/Game/Code/UltraStar.dpr
@@ -124,7 +124,7 @@ uses
acinerella in 'lib\acinerella\acinerella.pas';
const
- Version = 'UltraStar Deluxe v1.0.1a Challenge-MOD r7 alpha 2010-02-21';
+ Version = 'UltraStar Deluxe v1.0.1a Challenge-MOD r7 alpha 2010-02-22';
var
WndTitle: string;