aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/3ds/osystem-graphics.cpp20
-rw-r--r--backends/platform/3ds/osystem.h15
-rw-r--r--backends/platform/dc/dc.h12
-rw-r--r--backends/platform/dc/display.cpp26
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp17
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.h8
-rw-r--r--backends/platform/ps2/systemps2.cpp18
-rw-r--r--backends/platform/ps2/systemps2.h4
8 files changed, 0 insertions, 120 deletions
diff --git a/backends/platform/3ds/osystem-graphics.cpp b/backends/platform/3ds/osystem-graphics.cpp
index e1170a96d5..95b30193f7 100644
--- a/backends/platform/3ds/osystem-graphics.cpp
+++ b/backends/platform/3ds/osystem-graphics.cpp
@@ -124,26 +124,6 @@ bool OSystem_3DS::getFeatureState(OSystem::Feature f) {
}
}
-const OSystem::GraphicsMode *
-OSystem_3DS::getSupportedGraphicsModes() const {
- return s_graphicsModes;
-}
-
-int OSystem_3DS::getDefaultGraphicsMode() const {
- return GFX_LINEAR;
-}
-
-bool OSystem_3DS::setGraphicsMode(int mode) {
- return true;
-}
-
-void OSystem_3DS::resetGraphicsScale() {
- debug("resetGraphicsScale");
-}
-
-int OSystem_3DS::getGraphicsMode() const {
- return GFX_LINEAR;
-}
void OSystem_3DS::initSize(uint width, uint height,
const Graphics::PixelFormat *format) {
debug("3ds initsize w:%d h:%d", width, height);
diff --git a/backends/platform/3ds/osystem.h b/backends/platform/3ds/osystem.h
index d6d667dc91..e38579a536 100644
--- a/backends/platform/3ds/osystem.h
+++ b/backends/platform/3ds/osystem.h
@@ -39,11 +39,6 @@
namespace _3DS {
-enum {
- GFX_LINEAR = 0,
- GFX_NEAREST = 1
-};
-
enum MagnifyMode {
MODE_MAGON,
MODE_MAGOFF,
@@ -54,11 +49,6 @@ enum InputMode {
MODE_DRAG,
};
-static const OSystem::GraphicsMode s_graphicsModes[] = {
- {"default", "Default Test", GFX_LINEAR},
- { 0, 0, 0 }
-};
-
class OSystem_3DS : public EventsBaseBackend, public PaletteManager {
public:
OSystem_3DS();
@@ -96,11 +86,6 @@ public:
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority) override;
// Graphics
- virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const;
- int getDefaultGraphicsMode() const;
- bool setGraphicsMode(int mode);
- void resetGraphicsScale();
- int getGraphicsMode() const;
inline Graphics::PixelFormat getScreenFormat() const { return _pfGame; }
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
void initSize(uint width, uint height,
diff --git a/backends/platform/dc/dc.h b/backends/platform/dc/dc.h
index 20098a5e2e..ef47449365 100644
--- a/backends/platform/dc/dc.h
+++ b/backends/platform/dc/dc.h
@@ -89,18 +89,6 @@ class OSystem_Dreamcast : private DCHardware, public EventsBaseBackend, public P
// 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);
-
- // Determine which graphics mode is currently active.
- int getGraphicsMode() const;
-
// Set colors of the palette
PaletteManager *getPaletteManager() { return this; }
protected:
diff --git a/backends/platform/dc/display.cpp b/backends/platform/dc/display.cpp
index ffe9e5472a..e197d88019 100644
--- a/backends/platform/dc/display.cpp
+++ b/backends/platform/dc/display.cpp
@@ -682,32 +682,6 @@ void OSystem_Dreamcast::copyRectToOverlay(const void *buf, int pitch,
_overlay_dirty = true;
}
-
-static const OSystem::GraphicsMode gfxmodes[] = {
- { "default", "640x480 16bpp", 0 },
- { NULL, NULL, 0 }
-};
-
-const OSystem::GraphicsMode *OSystem_Dreamcast::getSupportedGraphicsModes() const
-{
- return gfxmodes;
-}
-
-int OSystem_Dreamcast::getDefaultGraphicsMode() const
-{
- return 0;
-}
-
-bool OSystem_Dreamcast::setGraphicsMode(int mode)
-{
- return mode == 0;
-}
-
-int OSystem_Dreamcast::getGraphicsMode() const
-{
- return 0;
-}
-
Graphics::Surface *OSystem_Dreamcast::lockScreen()
{
if (!screen)
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index a387f0a694..fd3606d250 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -162,23 +162,6 @@ bool OSystem_DS::getFeatureState(Feature f) {
return false;
}
-const OSystem::GraphicsMode *OSystem_DS::getSupportedGraphicsModes() const {
- return s_supportedGraphicsModes;
-}
-
-
-int OSystem_DS::getDefaultGraphicsMode() const {
- return 0;
-}
-
-bool OSystem_DS::setGraphicsMode(int mode) {
- return true;
-}
-
-int OSystem_DS::getGraphicsMode() const {
- return -1;
-}
-
void OSystem_DS::initSize(uint width, uint height, const Graphics::PixelFormat *format) {
// For Lost in Time, the title screen is displayed in 640x400.
// In order to support this game, the screen mode is set, but
diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h
index 5db644bed5..6fb8116bec 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.h
+++ b/backends/platform/ds/arm9/source/osystem_ds.h
@@ -84,10 +84,6 @@ public:
virtual bool hasFeature(Feature f);
virtual void setFeatureState(Feature f, bool enable);
virtual bool getFeatureState(Feature f);
- virtual const GraphicsMode *getSupportedGraphicsModes() const;
- virtual int getDefaultGraphicsMode() const;
- virtual bool setGraphicsMode(int mode);
- virtual int getGraphicsMode() const;
virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format);
virtual int16 getHeight();
virtual int16 getWidth();
@@ -183,8 +179,4 @@ public:
void engineDone();
};
-static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
- {0, 0, 0},
-};
-
#endif
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp
index a9fc71c90a..4231297888 100644
--- a/backends/platform/ps2/systemps2.cpp
+++ b/backends/platform/ps2/systemps2.cpp
@@ -792,24 +792,6 @@ void OSystem_PS2::unlockScreen(void) {
_screen->unlockScreen();
}
-const OSystem::GraphicsMode OSystem_PS2::_graphicsMode = { NULL, NULL, 0 };
-
-const OSystem::GraphicsMode *OSystem_PS2::getSupportedGraphicsModes(void) const {
- return &_graphicsMode;
-}
-
-bool OSystem_PS2::setGraphicsMode(int mode) {
- return (mode == 0);
-}
-
-int OSystem_PS2::getGraphicsMode(void) const {
- return 0;
-}
-
-int OSystem_PS2::getDefaultGraphicsMode(void) const {
- return 0;
-}
-
bool OSystem_PS2::pollEvent(Common::Event &event) {
bool res;
diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h
index e11d320d78..ea7acfa4f0 100644
--- a/backends/platform/ps2/systemps2.h
+++ b/backends/platform/ps2/systemps2.h
@@ -95,10 +95,6 @@ public:
virtual void unlockMutex(MutexRef mutex);
virtual void deleteMutex(MutexRef mutex);
- virtual const GraphicsMode *getSupportedGraphicsModes() const;
- virtual int getDefaultGraphicsMode() const;
- virtual bool setGraphicsMode(int mode);
- virtual int getGraphicsMode() const;
virtual int getScreenChangeID() const { return _screenChangeCount; }
virtual void quit();