mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 08:47:51 +00:00
Rewrite Widget::screen_pos() in terms of screen_rect().
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user