summaryrefslogtreecommitdiffstats
path: root/src/ui/maindialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r--src/ui/maindialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 784cd59..fc5bb30 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -2076,9 +2076,9 @@ bool CMainDialog::EventProcess(const Event &event)
m_shotDelay --;
if ( m_shotDelay == 0 )
{
- Math::IntPoint screenSize = m_app->GetVideoConfig().size;
+ Math::IntPoint windowSize = m_engine->GetWindowSize();
- m_engine->WriteScreenShot(m_shotName, screenSize.x, screenSize.y);
+ m_engine->WriteScreenShot(m_shotName, windowSize.x, windowSize.y);
}
}