From 52cab6fd7cc2366f3023a8e4547b0483f7ce60ec Mon Sep 17 00:00:00 2001 From: kevin koenig Date: Tue, 22 Feb 2022 13:12:07 -0500 Subject: [PATCH] cleanup static paint routine --- radio/src/thirdparty/libopenui/src/static.cpp | 34 ------------------- radio/src/thirdparty/libopenui/src/static.h | 3 -- 2 files changed, 37 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/static.cpp b/radio/src/thirdparty/libopenui/src/static.cpp index 3d1b09bfd..4d1a9900f 100644 --- a/radio/src/thirdparty/libopenui/src/static.cpp +++ b/radio/src/thirdparty/libopenui/src/static.cpp @@ -20,37 +20,3 @@ #include "static.h" #include "font.h" -void StaticText::paint(BitmapBuffer * dc) -{ - // if (bgColor) { - // dc->drawSolidFilledRect(0, 0, rect.w, rect.h, bgColor); - // } - - // coord_t x; - // if (textFlags & CENTERED) - // x = rect.w / 2; - // else if (textFlags & RIGHT) - // x = rect.w; - // else - // x = 0; - - // coord_t y = (textFlags & VCENTERED) ? (rect.h - getFontHeight(textFlags)) / 2 - // : FIELD_PADDING_TOP; - - // auto start = text.c_str(); - // auto nextline = findNextLine(start); - // if (nextline) { - // auto current = start; - // do { - // dc->drawText(x, y, - // text.substr(current - start, nextline - current).c_str(), - // textFlags); - // current = nextline + 1; - // nextline = findNextLine(current); - // y += getFontHeight(textFlags) + 2; - // } while (nextline); - // dc->drawText(x, y, current, textFlags); - // } else { - // dc->drawText(x, y, start, textFlags); - // } -} diff --git a/radio/src/thirdparty/libopenui/src/static.h b/radio/src/thirdparty/libopenui/src/static.h index 89464643b..032545006 100644 --- a/radio/src/thirdparty/libopenui/src/static.h +++ b/radio/src/thirdparty/libopenui/src/static.h @@ -55,14 +55,11 @@ class StaticText: public Window } #endif - void paint(BitmapBuffer * dc) override; - void setText(std::string value) { if (text != value) { text = std::move(value); lv_label_set_text(label, this->text.c_str()); - // invalidate(); } }