mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Rewrite Widget::screen_pos() in terms of screen_rect().
This commit is contained in:
parent
a420f018c7
commit
31499fea5d
@ -47,7 +47,7 @@ bool is_dirty() {
|
||||
/* Widget ****************************************************************/
|
||||
|
||||
Point Widget::screen_pos() {
|
||||
return parent() ? (parent()->screen_pos() + parent_rect.pos) : parent_rect.pos;
|
||||
return screen_rect().pos;
|
||||
}
|
||||
|
||||
Size Widget::size() const {
|
||||
|
Loading…
Reference in New Issue
Block a user