mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 07:58:44 +00:00
Workaround in snowballs for fullscreen bug with opengl driver
--HG-- branch : multipass-stereo
This commit is contained in:
parent
c5c6f7c871
commit
d45813adfc
1 changed files with 5 additions and 2 deletions
|
@ -311,12 +311,15 @@ void initCore()
|
|||
// Create the window with config file values
|
||||
Driver->setDisplay(UDriver::CMode(ConfigFile->getVar("ScreenWidth").asInt(),
|
||||
ConfigFile->getVar("ScreenHeight").asInt(),
|
||||
ConfigFile->getVar("ScreenDepth").asInt(),
|
||||
ConfigFile->getVar("ScreenFull").asInt()==0));
|
||||
ConfigFile->getVar("ScreenDepth").asInt()));
|
||||
// Set the cache size for the font manager(in bytes)
|
||||
Driver->setFontManagerMaxMemory(2097152);
|
||||
// Create a Text context for later text rendering
|
||||
displayLoadingState("Initialize Text");
|
||||
Driver->setMode(UDriver::CMode(ConfigFile->getVar("ScreenWidth").asInt(),
|
||||
ConfigFile->getVar("ScreenHeight").asInt(),
|
||||
ConfigFile->getVar("ScreenDepth").asInt(),
|
||||
ConfigFile->getVar("ScreenFull").asInt()==0));
|
||||
TextContext = Driver->createTextContext(CPath::lookup(ConfigFile->getVar("FontName").asString()));
|
||||
TextContext->setShaded(true);
|
||||
TextContext->setKeep800x600Ratio(false);
|
||||
|
|
Loading…
Reference in a new issue