aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorCameron Cawley2019-08-17 12:48:29 +0100
committerFilippos Karapetis2019-08-18 06:21:28 +0300
commitea9e33bd1096389f8f11614d080d16f0005b1e10 (patch)
treeb05caa95a6662805bb07b243807c4468d3a0659b /backends/graphics
parent1083ff65777867620f28b519bce4ab0d2edda7f1 (diff)
downloadscummvm-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/graphics')
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp3
-rw-r--r--backends/graphics/symbiansdl/symbiansdl-graphics.cpp1
2 files changed, 3 insertions, 1 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;