diff options
author | vanfanel | 2015-07-22 13:33:19 +0200 |
---|---|---|
committer | vanfanel | 2015-07-22 13:33:19 +0200 |
commit | 8cf5f96b9e497803f2fb79b771c3f1c05ee1c554 (patch) | |
tree | 85da160093c2bf377acf6e25f67ddb5ea87f83a0 /backends/graphics | |
parent | b706ca36f1e40d01e50d99d3e1296470f0727f3f (diff) | |
download | scummvm-rg350-8cf5f96b9e497803f2fb79b771c3f1c05ee1c554.tar.gz scummvm-rg350-8cf5f96b9e497803f2fb79b771c3f1c05ee1c554.tar.bz2 scummvm-rg350-8cf5f96b9e497803f2fb79b771c3f1c05ee1c554.zip |
SDL/DISPMANX: Make hasFeature(kFeatureFullscreenMode) return false since dispmanx graphics always run in accelerated fullscreen mode.
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp | 6 | ||||
-rw-r--r-- | backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp index 3f4a5ea92e..e3336844ee 100644 --- a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp +++ b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp @@ -564,6 +564,12 @@ bool DispmanXSdlGraphicsManager::handleScalerHotkeys(Common::KeyCode key) { return true; } +bool DispmanXSdlGraphicsManager::hasFeature(OSystem::Feature f) { + if (f == OSystem::kFeatureFullscreenMode) { + return false; + } +} + void DispmanXSdlGraphicsManager::setFullscreenMode(bool enable) { _videoMode.fullscreen = enable; } diff --git a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h index d2a52f5c69..1866ec14a2 100644 --- a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h +++ b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h @@ -38,6 +38,7 @@ public: void setFullscreenMode(bool enable); void setAspectRatioCorrection(bool enable); void clearOverlay(); + bool hasFeature(OSystem::Feature f); protected: // Raspberry Pi Dispmanx API void dispmanXSetup(int width, int height); |