mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 09:21:33 -04:00
Make Widget::screen_rect() const.
Because I can.
This commit is contained in:
parent
ab73d6155e
commit
dc2944d5e9
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ Size Widget::size() const {
|
|||
return parent_rect.size;
|
||||
}
|
||||
|
||||
Rect Widget::screen_rect() {
|
||||
Rect Widget::screen_rect() const {
|
||||
return parent() ? (parent_rect + parent()->screen_pos()) : parent_rect;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue