From f8d9cb318d71e33da3b319ba901bfdc59ba635d6 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 14 Jan 2016 09:56:06 -0800 Subject: [PATCH] Prevent AISAppView painting. View is always filled with children, no need to clear background before painting children. --- firmware/application/ais_app.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/application/ais_app.hpp b/firmware/application/ais_app.hpp index e40848e0f..162d06d69 100644 --- a/firmware/application/ais_app.hpp +++ b/firmware/application/ais_app.hpp @@ -131,6 +131,10 @@ public: void set_parent_rect(const Rect new_parent_rect) override; + // Prevent painting of region covered entirely by a child. + // TODO: Add flag to View that specifies view does not need to be cleared before painting. + void paint(Painter&) override { }; + private: AISRecentEntries recent; AISLogger logger;