mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-31 10:39:57 -04:00
Rewrite Widget::screen_pos() in terms of screen_rect().
This commit is contained in:
parent
a420f018c7
commit
31499fea5d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ bool is_dirty() {
|
||||||
/* Widget ****************************************************************/
|
/* Widget ****************************************************************/
|
||||||
|
|
||||||
Point Widget::screen_pos() {
|
Point Widget::screen_pos() {
|
||||||
return parent() ? (parent()->screen_pos() + parent_rect.pos) : parent_rect.pos;
|
return screen_rect().pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
Size Widget::size() const {
|
Size Widget::size() const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue