From 831a3f7f3591182ab0e7b8812e98c12282923909 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 14 Dec 2014 15:39:37 -0500 Subject: ACCESS: Implement dirty rect merging --- engines/access/screen.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/access/screen.h') diff --git a/engines/access/screen.h b/engines/access/screen.h index 7134afffeb..775cb6b0c3 100644 --- a/engines/access/screen.h +++ b/engines/access/screen.h @@ -63,9 +63,13 @@ private: int _startCycle; int _cycleStart; int _endCycle; - Common::Array _dirtyRects; + Common::List _dirtyRects; void updatePalette(); + + void mergeDirtyRects(); + + bool unionRectangle(Common::Rect &destRect, const Common::Rect &src1, const Common::Rect &src2); public: int _vesaMode; int _startColor, _numColors; -- cgit v1.2.3