aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scummvm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 06579fbbce..b674c6556e 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -36,6 +36,7 @@
#include "object.h"
#include "resource.h"
#include "string.h"
+#include "common/config-file.h"
#ifdef _WIN32_WCE
extern void drawError(char*);
@@ -144,6 +145,11 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst)
if (prop.cd_num >= 0 && (_features & GF_AUDIOTRACKS))
syst->property(OSystem::PROP_OPEN_CD, &prop);
+ if (g_config->getBool("fullscreen", false)) {
+ if (!_system->property(OSystem::PROP_GET_FULLSCREEN, 0))
+ _system->property(OSystem::PROP_TOGGLE_FULLSCREEN, 0);
+ }
+
/* Bind the mixer to the system => mixer will be invoked
* automatically when samples need to be generated */
_silentDigitalImuse = false;