- disable in game screen res change for osx (prompt user to restart game)

This commit is contained in:
SoftCoder 2014-12-06 18:45:26 -08:00
parent 3e3fef88f5
commit 8cd7a9580f
2 changed files with 11 additions and 2 deletions

@ -1 +1 @@
Subproject commit c73c69e196df6d99648ef8074ec4538ab88469e5
Subproject commit f674bb7461ea1ada93c96a7c3167daa4d2dc1ef3

View File

@ -591,6 +591,14 @@ void MenuStateOptionsGraphics::mouseClick(int x, int y, MouseButton mouseButton)
if(selectedMode == NULL) {
throw megaglest_runtime_error("selectedMode == NULL");
}
#if defined(__APPLE__)
mainMessageBoxState=1;
mainMessageBox.init(lang.getString("Ok"),lang.getString("Cancel"));
screenModeChangedTimer= time(NULL);
showMessageBox(lang.getString("RestartNeeded"), lang.getString("ResolutionChanged"), false);
#else
WindowGl *window = this->program->getWindow();
window->ChangeVideoMode(true,
selectedMode->width,
@ -609,8 +617,9 @@ void MenuStateOptionsGraphics::mouseClick(int x, int y, MouseButton mouseButton)
mainMessageBoxState=1;
mainMessageBox.init(lang.getString("Ok"),lang.getString("Cancel"));
screenModeChangedTimer= time(NULL);
//showMessageBox(lang.getString("RestartNeeded"), lang.getString("ResolutionChanged"), false);
showMessageBox(lang.getString("ResolutionChanged"), lang.getString("Notice"), false);
#endif
//No saveConfig() here! this is done by the messageBox
return;
}