mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 17:19:29 +00:00
Rewrite Widget::screen_pos() in terms of screen_rect().
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user