diff options
-rw-r--r-- | engines/zvision/render_manager.cpp | 16 | ||||
-rw-r--r-- | engines/zvision/render_manager.h | 1 |
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. |