aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl
diff options
context:
space:
mode:
authorJohannes Schickel2013-10-24 00:06:32 +0200
committerJohannes Schickel2013-10-24 00:06:32 +0200
commitea6d38d5f3b123b765e5bf8e2dc4f957e4b43eb6 (patch)
tree7ae9023d618e271f202e0847092ec2f92b9a9048 /backends/graphics/sdl
parent281672e1718d5f960061b714f79924125922e1e5 (diff)
downloadscummvm-rg350-ea6d38d5f3b123b765e5bf8e2dc4f957e4b43eb6.tar.gz
scummvm-rg350-ea6d38d5f3b123b765e5bf8e2dc4f957e4b43eb6.tar.bz2
scummvm-rg350-ea6d38d5f3b123b765e5bf8e2dc4f957e4b43eb6.zip
SDL: Make activateManager/deactivateManager SdlGraphicsManager specific.
We can do this now that we can use virtual inheritance and dynamic_cast because we enabled RTTI.
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r--backends/graphics/sdl/sdl-graphics.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h
index ebf8078f23..fea743b3ca 100644
--- a/backends/graphics/sdl/sdl-graphics.h
+++ b/backends/graphics/sdl/sdl-graphics.h
@@ -40,6 +40,19 @@ public:
virtual ~SdlGraphicsManager();
/**
+ * Makes this graphics manager active. That means it should be ready to
+ * process inputs now. However, even without being active it should be
+ * able to query the supported modes and other bits.
+ */
+ virtual void activateManager() {}
+
+ /**
+ * Makes this graphics manager inactive. This should allow another
+ * graphics manager to become active again.
+ */
+ virtual void deactivateManager() {}
+
+ /**
* Notify the graphics manager that the graphics needs to be redrawn, since
* the application window was modified.
*