diff options
author | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-22 21:58:30 +0000 |
---|---|---|
committer | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-22 21:58:30 +0000 |
commit | a62f7dccf70db03ba6f8ad8df50aa959ee653fa2 (patch) | |
tree | 8cd3da9dc29cc20242724872f1da24ff77291d24 | |
parent | b1adf70e2659a6414175b5ae66ffa33f90bf573e (diff) | |
download | usdx-a62f7dccf70db03ba6f8ad8df50aa959ee653fa2.tar.gz usdx-a62f7dccf70db03ba6f8ad8df50aa959ee653fa2.tar.xz usdx-a62f7dccf70db03ba6f8ad8df50aa959ee653fa2.zip |
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
-rw-r--r-- | Game/Code/Classes/UMain.pas | 8 |
1 files changed, 5 insertions, 3 deletions
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 <Print> 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
|