Skip to content

Commit

Permalink
PS2: Remove the unused method OSystem_PS2::grabRawScreen().
Browse files Browse the repository at this point in the history
This was removed from OSystem in b51f2f3.
  • Loading branch information
chmallon authored and wjp committed Nov 27, 2011
1 parent 89ccde3 commit 6a9ab74
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions backends/platform/ps2/Gs2dScreen.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion backends/platform/ps2/Gs2dScreen.h
Expand Up @@ -61,7 +61,6 @@ class Gs2dScreen {
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);
Expand Down
5 changes: 0 additions & 5 deletions backends/platform/ps2/systemps2.cpp
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion backends/platform/ps2/systemps2.h
Expand Up @@ -64,7 +64,6 @@ class OSystem_PS2 : public EventsBaseBackend, public PaletteManager {

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();
Expand Down

0 comments on commit 6a9ab74

Please sign in to comment.