Rewrite Widget::screen_pos() in terms of screen_rect().

This commit is contained in:
Jared Boone 2016-02-07 10:55:55 -08:00
parent a420f018c7
commit 31499fea5d

View File

@ -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 {