mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
When testing PR #2264 I discovered that GFXVideoMode::parseFromString() will never assign false to the fullScreen value. That value must be initialized to false going in. I found it hard to believe that that could be the case and not have caused a problem before now, so I dropped: ```c++ GFXVideoMode vmTest = GFXInit::getDesktopResolution(); vmTest.fullScreen = true; vmTest.parseFromString("800 600 false 32 60"); Con::printf("%s becomes %s", "800 600 false 32 60", vmTest.toString().c_str()); ``` into the end of _GFXInitGetInitialRes() and the output string is: 800 600 false 32 60 becomes 800 600 true 32 60 0 None of the values get assigned by the macro [here](https://github.com/GarageGames/Torque3D/blob/development/Engine/source/gfx/gfxStructs.cpp#L46-L48) if their function evaluates to zero or the token is missing from the string. This commit corrects that for the boolean case to only skip the assignment if the string token is not found. |
||
|---|---|---|
| Engine | ||
| My Projects | ||
| Templates | ||
| Tools | ||
| .gitattributes | ||
| .gitignore | ||
| allProjects.txt | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| generateAllProjects.bat | ||
| LICENSE.md | ||
| projects.xml | ||
| README.md | ||
Torque 3D
MIT Licensed Open Source version of Torque 3D from GarageGames
More Information
Pre-compiled Version
In addition to GitHub we also have a couple of pre-packaged files for you to download if you would prefer to not compile the code yourself. They are available from the downloads page on the wiki.