ssd1322_v1

This commit is contained in:
e2002
2023-03-10 15:57:34 +03:00
parent b88574c1c1
commit 391c68b1ba
8 changed files with 975 additions and 2 deletions

View File

@@ -381,7 +381,7 @@ void NumWidget::setText(const char* txt) {
_getBounds();
if (strcmp(_oldtext, _text) == 0) return;
uint16_t realth = _textheight;
#ifdef DSP_OLED
#if defined(DSP_OLED) && DSP_MODEL!=DSP_SSD1322
realth = _textheight*CHARHEIGHT;
#endif
if (_active) dsp.fillRect(_oldleft == 0 ? _realLeft() : min(_oldleft, _realLeft()), _config.top-_textheight+1, max(_oldtextwidth, _textwidth), realth, _bgcolor);