- 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:
Mark Vejvoda
2011-04-18 22:05:41 +00:00
parent c366d108e8
commit c2eca9bb05
5 changed files with 131 additions and 12 deletions

View File

@@ -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);