From a5e01a42b1e33a453b23ae6ff68073dc2625cfb7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 15 Mar 2004 00:47:59 +0000 Subject: Added getDefaultGraphicsMode for DC backend svn-id: r13285 --- backends/dc/dc.h | 5 ++++- backends/dc/display.cpp | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3