| 342 | } |
| 343 | |
| 344 | static void tmate2WriteSmallDisplayText(uint8_t* v, const QString& text) |
| 345 | { |
| 346 | const QString clean = text.left(3).rightJustified(3, QLatin1Char(' ')); |
| 347 | for (int d = 1; d <= 3; ++d) { |
| 348 | uint8_t hi = static_cast<uint8_t>(21 + 2 * d); |
| 349 | uint8_t lo = static_cast<uint8_t>(22 + 2 * d); |
| 350 | const SmallGlyph glyph = tmate2SmallGlyph(clean.at(3 - d)); |
| 351 | v[hi] &= 0x0Fu; |
| 352 | v[lo] &= 0x1Fu; |
| 353 | v[hi] |= glyph.high; |
| 354 | v[lo] |= glyph.low; |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | } // namespace |
| 359 |
no test coverage detected