Merge pull request #2265 from OTHGMars/vmParseFromString

Fix for bug in GFXVideoMode::parseFromString()
This commit is contained in:
Areloch 2018-07-09 13:56:12 -05:00 committed by GitHub
commit cc906b95c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")