From 8cf5f96b9e497803f2fb79b771c3f1c05ee1c554 Mon Sep 17 00:00:00 2001 From: vanfanel Date: Wed, 22 Jul 2015 13:33:19 +0200 Subject: SDL/DISPMANX: Make hasFeature(kFeatureFullscreenMode) return false since dispmanx graphics always run in accelerated fullscreen mode. --- backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp | 6 ++++++ backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h | 1 + 2 files changed, 7 insertions(+) (limited to 'backends') 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); -- cgit v1.2.3