From a62f7dccf70db03ba6f8ad8df50aa959ee653fa2 Mon Sep 17 00:00:00 2001 From: b1indy Date: Sat, 22 Dec 2007 21:58:30 +0000 Subject: fixed the screenshot problem git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@742 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UMain.pas | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Game/Code/Classes/UMain.pas') diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas index b47047a5..f798efb3 100644 --- a/Game/Code/Classes/UMain.pas +++ b/Game/Code/Classes/UMain.pas @@ -161,9 +161,11 @@ Begin SDL_KEYDOWN: begin //ScreenShot hack. If Print is pressed-> Make screenshot and Save to Screenshots Path - if (Event.key.keysym.sym = SDLK_SYSREQ) then - Display.ScreenShot - + if (Event.key.keysym.sym = SDLK_SYSREQ) or (Event.key.keysym.sym = SDLK_PRINT) then + begin +// ScreenPopupError.ShowPopup('How dare you press the key'); //show error message + Display.ScreenShot; + end // popup hack... if there is a visible popup then let it handle input instead of underlying screen // shoud be done in a way to be sure the topmost popup has preference (maybe error, then check) else if (ScreenPopupError <> NIL) and (ScreenPopupError.Visible) then -- cgit v1.2.3