diff options
author | Mohamed Waheed <mohamedwaheedmohamed@gmail.com> | 2014-06-24 01:35:05 +0300 |
---|---|---|
committer | Mohamed Waheed <mohamedwaheedmohamed@gmail.com> | 2014-06-24 01:35:05 +0300 |
commit | 613e1d74c47cf3a756af9aff75575c7567699381 (patch) | |
tree | c0cd765cf6983c9be95b81e2aeefeadece9d2b27 /src/ui/maindialog.cpp | |
parent | 99cd015dd89f0928246d1178c5641ebe325fe997 (diff) | |
download | colobot-613e1d74c47cf3a756af9aff75575c7567699381.tar.gz colobot-613e1d74c47cf3a756af9aff75575c7567699381.tar.bz2 colobot-613e1d74c47cf3a756af9aff75575c7567699381.zip |
implemented savefile screenshot feature
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r-- | src/ui/maindialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index 1964531..784cd59 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -2075,9 +2075,10 @@ bool CMainDialog::EventProcess(const Event &event) { m_shotDelay --; if ( m_shotDelay == 0 ) - { - m_engine->WriteScreenShot(m_shotName, 320, 240); - //? m_engine->WriteScreenShot(m_shotName, 160, 120); + { + Math::IntPoint screenSize = m_app->GetVideoConfig().size; + + m_engine->WriteScreenShot(m_shotName, screenSize.x, screenSize.y); } } |