mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 00:42:50 +02:00
- disable in game screen res change for osx (prompt user to restart game)
This commit is contained in:
Submodule data/glest_game updated: c73c69e196...f674bb7461
@@ -591,6 +591,14 @@ void MenuStateOptionsGraphics::mouseClick(int x, int y, MouseButton mouseButton)
|
|||||||
if(selectedMode == NULL) {
|
if(selectedMode == NULL) {
|
||||||
throw megaglest_runtime_error("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();
|
WindowGl *window = this->program->getWindow();
|
||||||
window->ChangeVideoMode(true,
|
window->ChangeVideoMode(true,
|
||||||
selectedMode->width,
|
selectedMode->width,
|
||||||
@@ -609,8 +617,9 @@ void MenuStateOptionsGraphics::mouseClick(int x, int y, MouseButton mouseButton)
|
|||||||
mainMessageBoxState=1;
|
mainMessageBoxState=1;
|
||||||
mainMessageBox.init(lang.getString("Ok"),lang.getString("Cancel"));
|
mainMessageBox.init(lang.getString("Ok"),lang.getString("Cancel"));
|
||||||
screenModeChangedTimer= time(NULL);
|
screenModeChangedTimer= time(NULL);
|
||||||
//showMessageBox(lang.getString("RestartNeeded"), lang.getString("ResolutionChanged"), false);
|
|
||||||
showMessageBox(lang.getString("ResolutionChanged"), lang.getString("Notice"), false);
|
showMessageBox(lang.getString("ResolutionChanged"), lang.getString("Notice"), false);
|
||||||
|
#endif
|
||||||
//No saveConfig() here! this is done by the messageBox
|
//No saveConfig() here! this is done by the messageBox
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user