Window Title can be set in ini file
" WindowTitle" is an option in ini file now. Default window name is MegaGlest
This commit is contained in:
parent
9dda6b59dc
commit
43e1786613
|
@ -754,7 +754,7 @@ void Program::init(WindowGl *window, bool initSound, bool toggleFullScreen){
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
//window
|
//window
|
||||||
window->setText("MegaGlest");
|
//window->setText("MegaGlest");
|
||||||
window->setStyle(config.getBool("Windowed")? wsWindowedFixed: wsFullscreen);
|
window->setStyle(config.getBool("Windowed")? wsWindowedFixed: wsFullscreen);
|
||||||
window->setPos(0, 0);
|
window->setPos(0, 0);
|
||||||
window->setSize(config.getInt("ScreenWidth"), config.getInt("ScreenHeight"));
|
window->setSize(config.getInt("ScreenWidth"), config.getInt("ScreenHeight"));
|
||||||
|
@ -805,7 +805,7 @@ void Program::init(WindowGl *window, bool initSound, bool toggleFullScreen){
|
||||||
config.getBool("HardwareAcceleration","false"),
|
config.getBool("HardwareAcceleration","false"),
|
||||||
config.getBool("FullScreenAntiAliasing","false"),
|
config.getBool("FullScreenAntiAliasing","false"),
|
||||||
config.getFloat("GammaValue","0.0"));
|
config.getFloat("GammaValue","0.0"));
|
||||||
|
window->setText(config.getString("WindowTitle","MegaGlest"));
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
window->makeCurrentGl();
|
window->makeCurrentGl();
|
||||||
|
@ -947,6 +947,7 @@ void Program::reInitGl() {
|
||||||
config.getBool("HardwareAcceleration","false"),
|
config.getBool("HardwareAcceleration","false"),
|
||||||
config.getBool("FullScreenAntiAliasing","false"),
|
config.getBool("FullScreenAntiAliasing","false"),
|
||||||
config.getFloat("GammaValue","0.0"));
|
config.getFloat("GammaValue","0.0"));
|
||||||
|
window->setText(config.getString("WindowTitle","MegaGlest"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -523,7 +523,7 @@ void MenuStateOptionsGraphics::revertScreenMode(){
|
||||||
config.getBool("HardwareAcceleration","false"),
|
config.getBool("HardwareAcceleration","false"),
|
||||||
config.getBool("FullScreenAntiAliasing","false"),
|
config.getBool("FullScreenAntiAliasing","false"),
|
||||||
config.getFloat("GammaValue","0.0"));
|
config.getFloat("GammaValue","0.0"));
|
||||||
|
window->setText(config.getString("WindowTitle","MegaGlest"));
|
||||||
Metrics::reload();
|
Metrics::reload();
|
||||||
this->mainMenu->init();
|
this->mainMenu->init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue