|
From: Tapio V. <aa...@us...> - 2010-01-18 14:59:45
|
Module: performous
Branch: master
Commit: 71583aa4151dca59daa95cf2dca1720588609982
Author: Tapio Vierros <tap...@gm...>
Date: Mon Jan 18 16:58:30 2010 +0200
Move screenshot flash message to a place where it actually tells it the shot succeeded.
---
game/main.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/game/main.cc b/game/main.cc
index 6e56350..6a0d491 100644
--- a/game/main.cc
+++ b/game/main.cc
@@ -64,7 +64,6 @@ static void checkEvents_SDL(ScreenManager& sm, Window& window) {
}
if (keypressed == SDLK_PRINT || keypressed == SDLK_F12) {
g_take_screenshot = true;
- sm.FlashMessage(_("Screenshot taken!"));
continue;
}
if (keypressed == SDLK_F4 && modifier & KMOD_ALT) {
@@ -161,8 +160,10 @@ void mainLoop(std::string const& songlist) {
fs::path filename;
try {
window.screenshot();
+ sm.FlashMessage(_("Screenshot taken!"));
} catch (std::exception& e) {
std::cerr << "ERROR: " << e.what() << std::endl;
+ sm.FlashMessage(_("Screenshot failed!"));
}
g_take_screenshot = false;
}
|