mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 23:39:29 -05:00
Remove unused View::dirty_screen_rect member.
This commit is contained in:
parent
41d4fd0044
commit
a420f018c7
@ -222,11 +222,6 @@ void Widget::dirty_overlapping_children_in_rect(const Rect& child_rect) {
|
||||
|
||||
/* View ******************************************************************/
|
||||
|
||||
void View::set_parent_rect(const Rect new_parent_rect) {
|
||||
Widget::set_parent_rect(new_parent_rect);
|
||||
dirty_screen_rect += screen_rect();
|
||||
}
|
||||
|
||||
void View::paint(Painter& painter) {
|
||||
painter.fill_rectangle(
|
||||
screen_rect(),
|
||||
|
@ -151,8 +151,6 @@ public:
|
||||
|
||||
// TODO: ~View() should on_hide() all children?
|
||||
|
||||
void set_parent_rect(const Rect new_parent_rect) override;
|
||||
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
void add_child(Widget* const widget);
|
||||
@ -164,7 +162,6 @@ public:
|
||||
|
||||
protected:
|
||||
std::vector<Widget*> children_;
|
||||
Rect dirty_screen_rect;
|
||||
|
||||
void invalidate_child(Widget* const widget);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user