Centered text implementation that takes the safe area into account
| 150 | |
| 151 | // Centered text implementation that takes the safe area into account |
| 152 | void UITheme::drawCenteredText(const GfxRenderer& renderer, Rect screen, int fontId, int y, const char* text, |
| 153 | bool black, EpdFontFamily::Style style) { |
| 154 | const int x = screen.x + (screen.width - renderer.getTextWidth(fontId, text, style)) / 2; |
| 155 | renderer.drawText(fontId, x, y, text, black, style); |
| 156 | } |
no test coverage detected