From 7ba2a6cc5144715c8b1e48356dc06731b3ba1298 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Mon, 22 Feb 2010 16:33:40 +0000 Subject: 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 --- Game/Code/Classes/UMain.pas | 11 +++++++++-- Game/Code/UltraStar.dpr | 2 +- Game/Output/acinerella.dll | Bin 6393363 -> 6469651 bytes 3 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; diff --git a/Game/Output/acinerella.dll b/Game/Output/acinerella.dll index 4a376225..1ce3479e 100644 Binary files a/Game/Output/acinerella.dll and b/Game/Output/acinerella.dll differ -- cgit v1.2.3