scrolling text improvement

better readability
- only add "shadow" pixels when overlay text is actually scrolling, or displayed value changes very often
This commit is contained in:
Frank
2024-10-28 21:26:04 +01:00
parent 3cd733d591
commit 9189329570
2 changed files with 6 additions and 3 deletions

View File

@@ -922,6 +922,7 @@ void Segment::drawCharacter(unsigned char chr, int16_t x, int16_t y, uint8_t w,
uint32_t bgCol = SEGCOLOR(1);
//if (w<5 || w>6 || h!=8) return;
if (drawShadow) w++; // one more column for shadow on right side
for (int i = 0; i<h; i++) { // character height
int16_t y0 = y + i;
if (y0 < 0) continue; // drawing off-screen