diff options
-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); }; /* */ |