TONY: Merge of dirty rect functionality

This commit is contained in:
Paul Gilbert 2012-06-23 00:57:21 +10:00
commit 717756749d
13 changed files with 186 additions and 12 deletions

View file

@ -921,6 +921,10 @@ int RMRect::size() const {
return width() * height();
}
RMRect::operator Common::Rect() const {
return Common::Rect(_x1, _y1, _x2, _y2);
}
bool RMRect::isEmpty() const {
return (_x1 == 0 && _y1 == 0 && _x2 == 0 && _y2 == 0);
}