Skip to content

Commit

Permalink
DS: Remove the unused method OSystem_DS::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 a78b2d7 commit 89ccde3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions backends/platform/ds/arm9/source/osystem_ds.cpp
Expand Up @@ -267,23 +267,6 @@ void OSystem_DS::setCursorPalette(const byte *colors, uint start, uint num) {
refreshCursor();
}

bool OSystem_DS::grabRawScreen(Graphics::Surface *surf) {
surf->create(DS::getGameWidth(), DS::getGameHeight(), Graphics::PixelFormat::createFormatCLUT8());

// Ensure we copy using 16 bit quantities due to limitation of VRAM addressing


const u16 *image = (const u16 *) DS::get8BitBackBuffer();
for (int y = 0; y < DS::getGameHeight(); y++) {
DC_FlushRange(image + (y << 8), DS::getGameWidth());
for (int x = 0; x < DS::getGameWidth() >> 1; x++) {
*(((u16 *) (surf->pixels)) + y * (DS::getGameWidth() >> 1) + x) = image[(y << 8) + x];
}
}

return true;
}

void OSystem_DS::grabPalette(unsigned char *colors, uint start, uint num) {
// consolePrintf("Grabpalette");

Expand Down
2 changes: 0 additions & 2 deletions backends/platform/ds/arm9/source/osystem_ds.h
Expand Up @@ -141,8 +141,6 @@ class OSystem_DS : public EventsBaseBackend, public PaletteManager {
void addEvent(const Common::Event& e);
bool isEventQueueEmpty() const { return queuePos == 0; }

virtual bool grabRawScreen(Graphics::Surface *surf);

virtual void setFocusRectangle(const Common::Rect& rect);

virtual void clearFocusRectangle();
Expand Down

0 comments on commit 89ccde3

Please sign in to comment.