GRAPHICS: Make ManagedSurface::clip() public

This commit is contained in:
Eugene Sandulenko 2019-12-27 13:30:02 +01:00
parent 6e4ba1e5c5
commit 4e58ef479b

View File

@ -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