mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix crash when the fullscreen property is read from the json
This commit is contained in:
parent
7308e6ef00
commit
995b83b97a
@ -1,5 +1,5 @@
|
||||
{
|
||||
"fullscreen": 1,
|
||||
"fullscreen": true,
|
||||
"speedrate": 1,
|
||||
"timerinterval": 50
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ static bool ReadConfig ()
|
||||
!(g_settingsOverload & SETTING_FULLSCREEN) &&
|
||||
j.find ("fullscreen") != j.end ())
|
||||
{
|
||||
g_bFullScreen = !j["fullscreen"].get<bool> ();
|
||||
g_bFullScreen = j["fullscreen"].get<bool> ();
|
||||
if (g_bFullScreen != 0)
|
||||
g_bFullScreen = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user