From 4e58ef479bb4c63e3a0e73e35f915658b9a923c3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 27 Dec 2019 13:30:02 +0100 Subject: GRAPHICS: Make ManagedSurface::clip() public --- graphics/managed_surface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/managed_surface.h b/graphics/managed_surface.h index b643d1b8cf..95671a7235 100644 --- a/graphics/managed_surface.h +++ b/graphics/managed_surface.h @@ -61,12 +61,13 @@ private: * the offset from the parent's top-left corner this sub-surface starts at */ Common::Point _offsetFromOwner; -protected: +public: /** * Clips the given source bounds so the passed destBounds will be entirely on-screen */ bool clip(Common::Rect &srcBounds, Common::Rect &destBounds); +protected: /** * Base method that descendent classes can override for recording affected * dirty areas of the surface -- cgit v1.2.3