TONY: Merge of dirty rect functionality
This commit is contained in:
commit
717756749d
13 changed files with 186 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue