diff options
author | Max Horn | 2009-11-18 13:59:36 +0000 |
---|---|---|
committer | Max Horn | 2009-11-18 13:59:36 +0000 |
commit | 9e5b8b4a331d142b50192a20e9b46c1739967018 (patch) | |
tree | 2a4f9c56648916840e223e33f60a333ba4d2877b /backends/platform/ps2 | |
parent | b6b96d9452d1244f76f9c62d4ac4c297f9820ef9 (diff) | |
download | scummvm-rg350-9e5b8b4a331d142b50192a20e9b46c1739967018.tar.gz scummvm-rg350-9e5b8b4a331d142b50192a20e9b46c1739967018.tar.bz2 scummvm-rg350-9e5b8b4a331d142b50192a20e9b46c1739967018.zip |
PS2: Remove custom OSystem::fillScreen implementation as well as clearScreen()
svn-id: r45973
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.cpp | 14 | ||||
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.h | 2 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 6 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.h | 1 |
4 files changed, 1 insertions, 22 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp index 1da7018648..c6318e73d0 100644 --- a/backends/platform/ps2/Gs2dScreen.cpp +++ b/backends/platform/ps2/Gs2dScreen.cpp @@ -391,20 +391,6 @@ void Gs2dScreen::copyScreenRect(const uint8 *buf, int pitch, int x, int y, int w } } -void Gs2dScreen::clearScreen(void) { - WaitSema(g_DmacSema); - memset(_screenBuf, 0, _width * _height); - _screenChanged = true; - SignalSema(g_DmacSema); -} - -void Gs2dScreen::fillScreen(uint32 col) { - WaitSema(g_DmacSema); - memset(_screenBuf, col, _width * _height); - _screenChanged = true; - SignalSema(g_DmacSema); -} - Graphics::Surface *Gs2dScreen::lockScreen() { WaitSema(g_DmacSema); diff --git a/backends/platform/ps2/Gs2dScreen.h b/backends/platform/ps2/Gs2dScreen.h index 4657ab02d9..81f47d5f4a 100644 --- a/backends/platform/ps2/Gs2dScreen.h +++ b/backends/platform/ps2/Gs2dScreen.h @@ -60,8 +60,6 @@ public: void copyPrintfOverlay(const uint8* buf); void clearPrintfOverlay(void); - void clearScreen(void); - void fillScreen(uint32 col); Graphics::Surface *lockScreen(); void unlockScreen(); diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index 813bb86eb2..1a3bf071c9 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -354,7 +354,7 @@ void OSystem_PS2::init(void) { makeConfigPath(); _screen->wantAnim(false); - _screen->clearScreen(); + fillScreen(0); } OSystem_PS2::~OSystem_PS2(void) { @@ -683,10 +683,6 @@ void OSystem_PS2::unlockScreen(void) { _screen->unlockScreen(); } -void OSystem_PS2::fillScreen(uint32 col) { - _screen->fillScreen(col); -} - const OSystem::GraphicsMode OSystem_PS2::_graphicsMode = { NULL, NULL, 0 }; const OSystem::GraphicsMode *OSystem_PS2::getSupportedGraphicsModes(void) const { diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h index e78f57befb..0056a7cfe2 100644 --- a/backends/platform/ps2/systemps2.h +++ b/backends/platform/ps2/systemps2.h @@ -72,7 +72,6 @@ public: virtual Graphics::Surface *lockScreen(); virtual void unlockScreen(); virtual void updateScreen(); - virtual void fillScreen(uint32); /* TODO : check */ virtual void displayMessageOnOSD(const char *msg) { printf("displayMessageOnOSD: %s\n", msg); }; /* */ |