Codechange: Make GetCurrentRect() conform to usual Rect bounds, and reuse it.
Similar code is already repeated in other locations.
(cherry picked from commit d8e06e590a
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
065ae3964a
commit
b414060f7c
@@ -179,8 +179,8 @@ public:
|
||||
Rect r;
|
||||
r.left = this->pos_x;
|
||||
r.top = this->pos_y;
|
||||
r.right = this->pos_x + this->current_x;
|
||||
r.bottom = this->pos_y + this->current_y;
|
||||
r.right = this->pos_x + this->current_x - 1;
|
||||
r.bottom = this->pos_y + this->current_y - 1;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user