Fixed screen shot handling on windows.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-02-28 11:51:19 +00:00
parent b0382b5532
commit 3485ae2d8c

View File

@ -159,8 +159,11 @@ void InputManager::handleStaticAction(int key, int value)
kart->flyDown();
break;
}
case KEY_SNAPSHOT:
case KEY_PRINT:
if (value != 0)
// on windows we don't get a press event, only release. So
// save on release only (to avoid saving twice on other platforms)
if (value ==0 )
irr_driver->requestScreenshot();
break;