diff options
author | Cameron Cawley | 2019-08-17 12:48:29 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-08-18 06:21:28 +0300 |
commit | ea9e33bd1096389f8f11614d080d16f0005b1e10 (patch) | |
tree | b05caa95a6662805bb07b243807c4468d3a0659b /backends | |
parent | 1083ff65777867620f28b519bce4ab0d2edda7f1 (diff) | |
download | scummvm-rg350-ea9e33bd1096389f8f11614d080d16f0005b1e10.tar.gz scummvm-rg350-ea9e33bd1096389f8f11614d080d16f0005b1e10.tar.bz2 scummvm-rg350-ea9e33bd1096389f8f11614d080d16f0005b1e10.zip |
GUI: Check if fullscreen is available at runtime
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.cpp | 3 | ||||
-rw-r--r-- | backends/graphics/symbiansdl/symbiansdl-graphics.cpp | 1 | ||||
-rw-r--r-- | backends/platform/symbian/src/portdefs.h | 1 | ||||
-rw-r--r-- | backends/platform/wince/portdefs.h | 1 |
4 files changed, 3 insertions, 3 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index a9902cf844..453c60c66f 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -343,6 +343,9 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) { } void SdlGraphicsManager::toggleFullScreen() { + if (!hasFeature(OSystem::kFeatureFullscreenMode)) + return; + beginGFXTransaction(); setFeatureState(OSystem::kFeatureFullscreenMode, !getFeatureState(OSystem::kFeatureFullscreenMode)); endGFXTransaction(); diff --git a/backends/graphics/symbiansdl/symbiansdl-graphics.cpp b/backends/graphics/symbiansdl/symbiansdl-graphics.cpp index 6458fcf62a..ca79a619f6 100644 --- a/backends/graphics/symbiansdl/symbiansdl-graphics.cpp +++ b/backends/graphics/symbiansdl/symbiansdl-graphics.cpp @@ -33,7 +33,6 @@ SymbianSdlGraphicsManager::SymbianSdlGraphicsManager(SdlEventSource *sdlEventSou bool SymbianSdlGraphicsManager::hasFeature(OSystem::Feature f) const { switch (f) { - case OSystem::kFeatureFullscreenMode: case OSystem::kFeatureAspectRatioCorrection: case OSystem::kFeatureCursorPalette: return true; diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 93dd4fa982..598dfabbd7 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -84,7 +84,6 @@ namespace std #undef remove #endif -#define GUI_ONLY_FULLSCREEN #define GUI_ENABLE_KEYSDIALOG #define DISABLE_COMMAND_LINE diff --git a/backends/platform/wince/portdefs.h b/backends/platform/wince/portdefs.h index 2283f94a2b..5c24b4b510 100644 --- a/backends/platform/wince/portdefs.h +++ b/backends/platform/wince/portdefs.h @@ -30,7 +30,6 @@ // Missing string/stdlib/assert declarations for WinCE 2.xx #if _WIN32_WCE < 300 - #define GUI_ONLY_FULLSCREEN #define GUI_ENABLE_KEYSDIALOG void *calloc(size_t n, size_t s); |