aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-16 00:12:08 -0500
committerRichieSams2013-09-16 00:17:24 -0500
commitc7e2bdd2b2730225d1d76b22c71e7733ed61f23c (patch)
tree10c12f6dc2d4dd0bad12a6da0adfd593226a549e
parenta2c36a16b52d5bccbfdc141e3f75bfca9aa8535a (diff)
downloadscummvm-rg350-c7e2bdd2b2730225d1d76b22c71e7733ed61f23c.tar.gz
scummvm-rg350-c7e2bdd2b2730225d1d76b22c71e7733ed61f23c.tar.bz2
scummvm-rg350-c7e2bdd2b2730225d1d76b22c71e7733ed61f23c.zip
ZVISION: Remove extraneous function
-rw-r--r--engines/zvision/render_manager.cpp16
-rw-r--r--engines/zvision/render_manager.h1
2 files changed, 0 insertions, 17 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp
index 13e8cba240..7f10535bb2 100644
--- a/engines/zvision/render_manager.cpp
+++ b/engines/zvision/render_manager.cpp
@@ -376,22 +376,6 @@ Common::Rect RenderManager::renderTextToWorkingWindow(uint32 idNumber, const Com
return Common::Rect(destX, destY, destX + entry.width, destY + entry.height);
}
-void RenderManager::copyWorkingWindowSubRectToSurface(Graphics::Surface *destSurface, uint16 destX, uint16 destY, Common::Rect subRect) const {
- uint32 destOffset = 0;
- uint32 sourceOffset = 0;
- uint16 *workingWindowBufferPtr = (uint16 *)_workingWindowBuffer.getBasePtr(subRect.left, subRect.top);
- uint16 *destPtr = (uint16 *)destSurface->getBasePtr(destX, destY);
-
- for (int32 y = 0; y < subRect.height(); y++) {
- for (int32 x = 0; x < subRect.width(); x++) {
- destPtr[destOffset + x] = workingWindowBufferPtr[sourceOffset + x];
- }
-
- destOffset += destSurface->w;
- sourceOffset += _workingWidth;
- }
-}
-
const Common::Point RenderManager::screenSpaceToImageSpace(const Common::Point &point) {
// Convert from screen space to working window space
Common::Point newPoint(point - Common::Point(_workingWindow.left, _workingWindow.top));
diff --git a/engines/zvision/render_manager.h b/engines/zvision/render_manager.h
index 2fc3f230df..b0a42d9ba7 100644
--- a/engines/zvision/render_manager.h
+++ b/engines/zvision/render_manager.h
@@ -214,7 +214,6 @@ public:
RenderTable *getRenderTable();
uint32 getCurrentBackgroundOffset();
const Graphics::Surface *getBackBuffer() { return &_backBuffer; }
- void copyWorkingWindowSubRectToSurface(Graphics::Surface *destSurface, uint16 destX, uint16 destY, Common::Rect subRect) const;
/**
* Creates a copy of surface and transposes the data.