summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-10-25 18:34:29 +0200
committerkrzys-h <krzys_h@interia.pl>2014-10-25 18:34:29 +0200
commit26376c652d59de271147027bb5c365b22c2765c2 (patch)
tree6a135bcd74cced6e7ed1384b00e991f11d6091c5 /src/ui
parentc9eb3ce5c57e48af52f0798bff0aa7c42448d154 (diff)
downloadcolobot-26376c652d59de271147027bb5c365b22c2765c2.tar.gz
colobot-26376c652d59de271147027bb5c365b22c2765c2.tar.bz2
colobot-26376c652d59de271147027bb5c365b22c2765c2.zip
Nothing else works, so restart the game on resolution change
Fixes #339 for now, but we'll need alternative solution later
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/maindialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 0ab9085..ede7453 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -4677,7 +4677,13 @@ void CMainDialog::ChangeDisplay()
bFull = pc->TestState(STATE_CHECK);
m_setupFull = bFull;
+ SetupMemorize();
+ #if !PLATFORM_LINUX
+ // Windows causes problems, so we'll restart the game
+ // Mac OS was not tested so let's restart just to be sure
+ m_app->Restart();
+ #else
std::vector<Math::IntPoint> modes;
m_app->GetVideoResolutionList(modes, true, true);
@@ -4685,6 +4691,7 @@ void CMainDialog::ChangeDisplay()
config.size = modes[m_setupSelMode];
config.fullScreen = bFull;
m_app->ChangeVideoConfig(config);
+ #endif
}