aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-03-15 00:47:59 +0000
committerMax Horn2004-03-15 00:47:59 +0000
commita5e01a42b1e33a453b23ae6ff68073dc2625cfb7 (patch)
tree6ca823229281dd5e4588dede6b8157d2d5386fb1
parente46ba2f29ff20a317e708d15dc5be904cdf005eb (diff)
downloadscummvm-rg350-a5e01a42b1e33a453b23ae6ff68073dc2625cfb7.tar.gz
scummvm-rg350-a5e01a42b1e33a453b23ae6ff68073dc2625cfb7.tar.bz2
scummvm-rg350-a5e01a42b1e33a453b23ae6ff68073dc2625cfb7.zip
Added getDefaultGraphicsMode for DC backend
svn-id: r13285
-rw-r--r--backends/dc/dc.h5
-rw-r--r--backends/dc/display.cpp5
2 files changed, 9 insertions, 1 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h
index 8fa314baf5..7a17b964a1 100644
--- a/backends/dc/dc.h
+++ b/backends/dc/dc.h
@@ -46,12 +46,15 @@ class OSystem_Dreamcast : public OSystem {
// En-/disable the specified feature.
void setFeatureState(Feature f, bool enable);
- // Query the state of the specified feature. For example, test whether
+ // Query the state of the specified feature.
bool getFeatureState(Feature f);
// Retrieve a list of all graphics modes supported by this backend.
const GraphicsMode *getSupportedGraphicsModes() const;
+ // Return the ID of the 'default' graphics mode.
+ int getDefaultGraphicsMode() const;
+
// Switch to the specified graphics mode.
bool setGraphicsMode(int mode);
diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp
index d32e3a718b..beeffed3fe 100644
--- a/backends/dc/display.cpp
+++ b/backends/dc/display.cpp
@@ -575,6 +575,11 @@ const OSystem::GraphicsMode *OSystem_Dreamcast::getSupportedGraphicsModes() cons
return gfxmodes;
}
+int GraphicsMode *OSystem_Dreamcast::getDefaultGraphicsMode() const
+{
+ return 0;
+}
+
bool OSystem_Dreamcast::setGraphicsMode(int mode)
{
return mode == 0;