mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 10:51:55 +02:00
- added better way to show some common resolutions in the options menu
- if video mode selected fails, first we now try to revert to 800x600 then 640x480
This commit is contained in:
@@ -575,7 +575,7 @@ void Program::setDisplaySettings(){
|
||||
|
||||
Config &config= Config::getInstance();
|
||||
|
||||
if(!config.getBool("Windowed")){
|
||||
if(!config.getBool("Windowed")) {
|
||||
|
||||
int freq= config.getInt("RefreshFrequency");
|
||||
int colorBits= config.getInt("ColorBits");
|
||||
@@ -583,7 +583,7 @@ void Program::setDisplaySettings(){
|
||||
int screenHeight= config.getInt("ScreenHeight");
|
||||
|
||||
if(config.getBool("AutoMaxFullScreen","false") == true) {
|
||||
getFullscreenVideoInfo(colorBits,screenWidth,screenHeight);
|
||||
getFullscreenVideoInfo(colorBits,screenWidth,screenHeight,!config.getBool("Windowed"));
|
||||
config.setInt("ColorBits",colorBits);
|
||||
config.setInt("ScreenWidth",screenWidth);
|
||||
config.setInt("ScreenHeight",screenHeight);
|
||||
|
Reference in New Issue
Block a user