From 7b070bbef8275ff25dfc2cbc3106acfdc8de74a5 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Fri, 30 Jul 2010 03:31:05 +0000 Subject: SDL/OPENGL: Add ability to switch between SDL and OpenGL graphics managers. OSystem_SDL will create a merged list of all graphics modes from SDL and OpenGL. When the user changes the graphics mode in options and restarts ScummVM should switch to that graphics mode in the corresponding graphics manager. svn-id: r51493 --- backends/graphics/sdl/sdl-graphics.cpp | 4 ++++ backends/graphics/sdl/sdl-graphics.h | 1 + 2 files changed, 5 insertions(+) (limited to 'backends/graphics/sdl') diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index a6cf5c54dd..e0c7dc7100 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -240,6 +240,10 @@ bool SdlGraphicsManager::getFeatureState(OSystem::Feature f) { } } +const OSystem::GraphicsMode *SdlGraphicsManager::supportedGraphicsModes() { + return s_supportedGraphicsModes; +} + const OSystem::GraphicsMode *SdlGraphicsManager::getSupportedGraphicsModes() const { return s_supportedGraphicsModes; } diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h index e2ad4b525d..01ae44222a 100644 --- a/backends/graphics/sdl/sdl-graphics.h +++ b/backends/graphics/sdl/sdl-graphics.h @@ -82,6 +82,7 @@ public: virtual void setFeatureState(OSystem::Feature f, bool enable); virtual bool getFeatureState(OSystem::Feature f); + static const OSystem::GraphicsMode *supportedGraphicsModes(); virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const; virtual int getDefaultGraphicsMode() const; virtual bool setGraphicsMode(int mode); -- cgit v1.2.3