mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-13 07:33:39 +00: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 ****************************************************************/
|
/* 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…
x
Reference in New Issue
Block a user