aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChristoph Mallon2011-11-21 12:39:34 +0100
committerWillem Jan Palenstijn2011-11-27 13:09:47 +0100
commit89ccde39485196c5131e88e30ab34d268a0f32cc (patch)
tree481bff6d3d442b1ce034da99a139f19e175401e7 /backends
parenta78b2d777d98e494b988843bfd9694c58c6c6018 (diff)
downloadscummvm-rg350-89ccde39485196c5131e88e30ab34d268a0f32cc.tar.gz
scummvm-rg350-89ccde39485196c5131e88e30ab34d268a0f32cc.tar.bz2
scummvm-rg350-89ccde39485196c5131e88e30ab34d268a0f32cc.zip
DS: Remove the unused method OSystem_DS::grabRawScreen().
This was removed from OSystem in b51f2f3212ae8a5abbdce4d947ec2d1cad1a0b6f.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp17
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index fdd310ec17..73340ed18a 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -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");
diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h
index b1222a152d..6aa3731916 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.h
+++ b/backends/platform/ds/arm9/source/osystem_ds.h
@@ -141,8 +141,6 @@ public:
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();