summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 8f9586d9..7ef4967e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -575,7 +575,15 @@ void do_input()
used = true;
break;
*/
-
+ // screenshot (picture, hence the p)
+ case SDLK_p:
+ static int picCount = 1;
+ if (!graphics->saveScreenshot("Screenshot%d.png", picCount))
+ {
+ logger->log("Error: could not save Screenshot%d.png", picCount);
+ picCount++;
+ }
+ break;
// Skill window
case SDLK_k:
skillDialog->setVisible(!skillDialog->isVisible());