[Scummvm-git-logs] scummvm master -> 2b2adef18da96f784542532cfcd0f9aaae18ecf7

ccawley2011 noreply at scummvm.org
Sat Oct 4 16:21:43 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
2b2adef18d GRAPHICS: Add read-only version of ManagedSurface::getSubArea


Commit: 2b2adef18da96f784542532cfcd0f9aaae18ecf7
    https://github.com/scummvm/scummvm/commit/2b2adef18da96f784542532cfcd0f9aaae18ecf7
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-10-04T17:21:40+01:00

Commit Message:
GRAPHICS: Add read-only version of ManagedSurface::getSubArea

Changed paths:
    graphics/managed_surface.h


diff --git a/graphics/managed_surface.h b/graphics/managed_surface.h
index 50fbcbf4c2a..6694a0597a2 100644
--- a/graphics/managed_surface.h
+++ b/graphics/managed_surface.h
@@ -959,6 +959,13 @@ public:
 		return _innerSurface.getSubArea(area);
 	}
 
+	/**
+	 * Return a read-only sub-area of the screen.
+	 */
+	const Surface getSubArea(const Common::Rect &area) const {
+		return _innerSurface.getSubArea(area);
+	}
+
 	/**
 	 * Convert the data to another pixel format.
 	 *




More information about the Scummvm-git-logs mailing list