From 995b83b97aba24c49c493ed0a233f050e6d18007 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Mon, 14 Aug 2017 17:32:55 +0200 Subject: [PATCH] Fix crash when the fullscreen property is read from the json --- resources/data/config.json | 2 +- src/blupi.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/data/config.json b/resources/data/config.json index f873153..40d572f 100644 --- a/resources/data/config.json +++ b/resources/data/config.json @@ -1,5 +1,5 @@ { - "fullscreen": 1, + "fullscreen": true, "speedrate": 1, "timerinterval": 50 } diff --git a/src/blupi.cxx b/src/blupi.cxx index 2192a59..c058952 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -137,7 +137,7 @@ static bool ReadConfig () !(g_settingsOverload & SETTING_FULLSCREEN) && j.find ("fullscreen") != j.end ()) { - g_bFullScreen = !j["fullscreen"].get (); + g_bFullScreen = j["fullscreen"].get (); if (g_bFullScreen != 0) g_bFullScreen = 1; }