Torque3D - Game Engine
Find a file
OTHGMars bab3d9d5f3 Fix for bug in GFXVideoMode::parseFromString()
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.
2018-07-07 02:23:59 -04:00
Engine Fix for bug in GFXVideoMode::parseFromString() 2018-07-07 02:23:59 -04:00
My Projects changed readme 2014-03-19 02:20:35 +01:00
Templates stray fork contamination cleanup 2018-04-02 23:58:54 -05:00
Tools Merge pull request #2254 from rextimmy/sdl_2_0_8 2018-05-30 20:37:00 -05:00
.gitattributes Update gitattributes with some text files for avoid EOF problems with Git. 2014-12-06 01:18:41 +01:00
.gitignore improved gitignore for VS2012 2014-03-14 17:18:11 +01:00
allProjects.txt Update allProjects.txt 2013-05-08 11:58:47 -03:00
CMakeLists.txt overrides the default CMAKE_INSTALL_PREFIX 2015-07-22 00:22:23 -05:00
CONTRIBUTING.md Mention code style guidelines. 2014-11-02 08:04:12 +11:00
generateAllProjects.bat Top level files for ticket #1 2012-09-19 11:00:36 -04:00
LICENSE.md Update LICENSE.md 2016-12-21 08:28:01 -06:00
projects.xml Direct3D11 CMake and Project Generator files. 2016-03-20 21:55:40 +10:00
README.md update documentation link 2017-09-02 08:06:10 -05:00

Torque 3D

MIT Licensed Open Source version of Torque 3D from GarageGames

GitHub tag GitHub release Github All Releases

IRC

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.

License

All assets and code are under the license