mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 04:22:32 +02:00
Bugfix for release so if the current used resolution string isn't properly detected we add it at the end.
- Updated win32 glest.ini and win32 installer script
This commit is contained in:
@@ -132,11 +132,21 @@ MenuStateOptions::MenuStateOptions(Program *program, MainMenu *mainMenu):
|
||||
labelScreenModes.init(leftLabelStart, leftline);
|
||||
labelScreenModes.setText(lang.get("Resolution"));
|
||||
listBoxScreenModes.init(leftColumnStart, leftline, 170);
|
||||
|
||||
string currentResString = config.getString("ScreenWidth") + "x" +
|
||||
config.getString("ScreenHeight") + "-" +
|
||||
intToStr(config.getInt("ColorBits"));
|
||||
bool currentResolutionFound = false;
|
||||
for(list<ModeInfo>::const_iterator it= modeInfos.begin(); it!=modeInfos.end(); ++it){
|
||||
if((*it).getString() == currentResString) {
|
||||
currentResolutionFound = true;
|
||||
}
|
||||
listBoxScreenModes.pushBackItem((*it).getString());
|
||||
}
|
||||
listBoxScreenModes.setSelectedItem(config.getString("ScreenWidth")+"x"+
|
||||
config.getString("ScreenHeight")+"-"+intToStr(config.getInt("ColorBits")));
|
||||
if(currentResolutionFound == false) {
|
||||
listBoxScreenModes.pushBackItem(currentResString);
|
||||
}
|
||||
listBoxScreenModes.setSelectedItem(currentResString);
|
||||
leftline-=30;
|
||||
|
||||
//filter
|
||||
|
Reference in New Issue
Block a user