mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 08:57:46 +00:00
Remove unused View::dirty_screen_rect member.
This commit is contained in:
@@ -222,11 +222,6 @@ void Widget::dirty_overlapping_children_in_rect(const Rect& child_rect) {
|
|||||||
|
|
||||||
/* View ******************************************************************/
|
/* 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) {
|
void View::paint(Painter& painter) {
|
||||||
painter.fill_rectangle(
|
painter.fill_rectangle(
|
||||||
screen_rect(),
|
screen_rect(),
|
||||||
|
@@ -151,8 +151,6 @@ public:
|
|||||||
|
|
||||||
// TODO: ~View() should on_hide() all children?
|
// TODO: ~View() should on_hide() all children?
|
||||||
|
|
||||||
void set_parent_rect(const Rect new_parent_rect) override;
|
|
||||||
|
|
||||||
void paint(Painter& painter) override;
|
void paint(Painter& painter) override;
|
||||||
|
|
||||||
void add_child(Widget* const widget);
|
void add_child(Widget* const widget);
|
||||||
@@ -164,7 +162,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<Widget*> children_;
|
std::vector<Widget*> children_;
|
||||||
Rect dirty_screen_rect;
|
|
||||||
|
|
||||||
void invalidate_child(Widget* const widget);
|
void invalidate_child(Widget* const widget);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user