From 5597524b7a0e6cb4aa88dd290a0e58a932fe96d9 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 7 Feb 2022 15:32:39 +0100 Subject: [PATCH] Add empty paint() method to Checkbox & Button --- radio/src/thirdparty/libopenui/src/button.h | 2 ++ radio/src/thirdparty/libopenui/src/checkbox.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/button.h b/radio/src/thirdparty/libopenui/src/button.h index 1f11a9a4c..448ddc6b3 100644 --- a/radio/src/thirdparty/libopenui/src/button.h +++ b/radio/src/thirdparty/libopenui/src/button.h @@ -116,6 +116,8 @@ class TextButton: public Button bgColorHandler = std::move(handler); } + void paint(BitmapBuffer* dc) override {} + protected: lv_obj_t * label = nullptr; diff --git a/radio/src/thirdparty/libopenui/src/checkbox.h b/radio/src/thirdparty/libopenui/src/checkbox.h index c94c4f2ff..2d772968f 100644 --- a/radio/src/thirdparty/libopenui/src/checkbox.h +++ b/radio/src/thirdparty/libopenui/src/checkbox.h @@ -66,6 +66,8 @@ class CheckBox : public FormField { _setValue = std::move(handler); } + void paint(BitmapBuffer* dc) override {} + protected: std::string label; std::function _getValue;