mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02: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) {
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user