mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #2265 from OTHGMars/vmParseFromString
Fix for bug in GFXVideoMode::parseFromString()
This commit is contained in:
commit
cc906b95c2
|
|
@ -49,7 +49,9 @@ void GFXVideoMode::parseFromString( const char *str )
|
|||
|
||||
PARSE_ELEM(S32, resolution.x, dAtoi, tempBuf, " x\0")
|
||||
PARSE_ELEM(S32, resolution.y, dAtoi, NULL, " x\0")
|
||||
PARSE_ELEM(S32, fullScreen, dAtob, NULL, " \0")
|
||||
const char *boolptr = dStrtok(NULL, " \0");
|
||||
if (boolptr)
|
||||
fullScreen = dAtob(boolptr);
|
||||
PARSE_ELEM(S32, bitDepth, dAtoi, NULL, " \0")
|
||||
PARSE_ELEM(S32, refreshRate, dAtoi, NULL, " \0")
|
||||
PARSE_ELEM(S32, antialiasLevel, dAtoi, NULL, " \0")
|
||||
|
|
|
|||
Loading…
Reference in a new issue