aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/render_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/render_manager.cpp')
-rw-r--r--engines/zvision/render_manager.cpp16
1 files changed, 0 insertions, 16 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));