aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/gfxcore.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-23 00:57:21 +1000
committerPaul Gilbert2012-06-23 00:57:21 +1000
commit717756749df4a1effa2628d5a7c039401c1d1f47 (patch)
tree97a9a1b5796d2706ead5100e5d2fe6a2b296ec1c /engines/tony/gfxcore.h
parent2990482406710c77280c67f3b7672a569b9d5a92 (diff)
parenteef6b444df766b90d1323941c7ff9bd8355c111b (diff)
downloadscummvm-rg350-717756749df4a1effa2628d5a7c039401c1d1f47.tar.gz
scummvm-rg350-717756749df4a1effa2628d5a7c039401c1d1f47.tar.bz2
scummvm-rg350-717756749df4a1effa2628d5a7c039401c1d1f47.zip
TONY: Merge of dirty rect functionality
Diffstat (limited to 'engines/tony/gfxcore.h')
-rw-r--r--engines/tony/gfxcore.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/tony/gfxcore.h b/engines/tony/gfxcore.h
index be89c1713c..32e3c96881 100644
--- a/engines/tony/gfxcore.h
+++ b/engines/tony/gfxcore.h
@@ -558,6 +558,10 @@ private:
}
};
+ bool _trackDirtyRects;
+ Common::List<Common::Rect> _currentDirtyRects, _previousDirtyRects, _dirtyRects;
+
+ void mergeDirtyRects();
private:
// OSystem::MutexRef csModifyingOT;
@@ -589,6 +593,17 @@ public:
void offsetY(int nLines) {
RMGfxBuffer::offsetY(nLines, 16);
}
+
+ // Dirty rect methods
+ void addDirtyRect(const Common::Rect &r);
+ Common::List<Common::Rect> &getDirtyRects();
+ void clearDirtyRects();
+ void setTrackDirtyRects(bool v) {
+ _trackDirtyRects = v;
+ }
+ bool getTrackDirtyRects() const {
+ return _trackDirtyRects;
+ }
};