mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
- disable in game screen res change for osx (prompt user to restart game)
This commit is contained in:
parent
3e3fef88f5
commit
8cd7a9580f
@ -1 +1 @@
|
||||
Subproject commit c73c69e196df6d99648ef8074ec4538ab88469e5
|
||||
Subproject commit f674bb7461ea1ada93c96a7c3167daa4d2dc1ef3
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user