diff options
author | Christoph Mallon | 2011-11-21 12:52:43 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-27 13:11:58 +0100 |
commit | 6a9ab747f9ec97d644787bf8a3415b55ca44c2d1 (patch) | |
tree | ea45cc86d956ed8d21844163a66ae4a8de98acad /backends/platform/ps2 | |
parent | 89ccde39485196c5131e88e30ab34d268a0f32cc (diff) | |
download | scummvm-rg350-6a9ab747f9ec97d644787bf8a3415b55ca44c2d1.tar.gz scummvm-rg350-6a9ab747f9ec97d644787bf8a3415b55ca44c2d1.tar.bz2 scummvm-rg350-6a9ab747f9ec97d644787bf8a3415b55ca44c2d1.zip |
PS2: Remove the unused method OSystem_PS2::grabRawScreen().
This was removed from OSystem in b51f2f3212ae8a5abbdce4d947ec2d1cad1a0b6f.
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.cpp | 8 | ||||
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.h | 1 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 5 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.h | 1 |
4 files changed, 0 insertions, 15 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp index ddc1bdf668..b70e8b13fa 100644 --- a/backends/platform/ps2/Gs2dScreen.cpp +++ b/backends/platform/ps2/Gs2dScreen.cpp @@ -437,14 +437,6 @@ void Gs2dScreen::grabPalette(uint8 *pal, uint8 start, uint16 num) { } } -void Gs2dScreen::grabScreen(Graphics::Surface *surf) { - assert(surf); - WaitSema(g_DmacSema); - surf->create(_width, _height, Graphics::PixelFormat::createFormatCLUT8()); - memcpy(surf->pixels, _screenBuf, _width * _height); - SignalSema(g_DmacSema); -} - void Gs2dScreen::uploadToVram(void) { if (_clutChanged) { _clutChanged = false; diff --git a/backends/platform/ps2/Gs2dScreen.h b/backends/platform/ps2/Gs2dScreen.h index 3701afd590..4fbb3fdef8 100644 --- a/backends/platform/ps2/Gs2dScreen.h +++ b/backends/platform/ps2/Gs2dScreen.h @@ -61,7 +61,6 @@ public: void setPalette(const uint8 *pal, uint8 start, uint16 num); void updateScreen(void); void grabPalette(uint8 *pal, uint8 start, uint16 num); - void grabScreen(Graphics::Surface *surf); //- overlay routines void copyOverlayRect(const uint16 *buf, uint16 pitch, uint16 x, uint16 y, uint16 w, uint16 h); void grabOverlay(uint16 *buf, uint16 pitch); diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index c75d7493a2..481227dd02 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -558,11 +558,6 @@ void OSystem_PS2::copyRectToScreen(const byte *buf, int pitch, int x, int y, int _screen->copyScreenRect((const uint8*)buf, pitch, x, y, w, h); } -bool OSystem_PS2::grabRawScreen(Graphics::Surface *surf) { - _screen->grabScreen(surf); - return true; -} - void OSystem_PS2::updateScreen(void) { if (_msgClearTime && (_msgClearTime < getMillis())) { _screen->clearPrintfOverlay(); diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h index 35ceaf829e..3a0e247737 100644 --- a/backends/platform/ps2/systemps2.h +++ b/backends/platform/ps2/systemps2.h @@ -64,7 +64,6 @@ public: virtual void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h); virtual void setShakePos(int shakeOffset); - virtual bool grabRawScreen(Graphics::Surface *surf); virtual Graphics::Surface *lockScreen(); virtual void unlockScreen(); virtual void updateScreen(); |