Draws a single button-glyph footer hint line, centered on `screenW`. The line shrinks rather than truncates: drawCentered() would ellipsize a hint that overflows, and a footer that silently drops its last hint is worse than one set a couple of points smaller.
| 92 | // overflows, and a footer that silently drops its last hint is worse than one |
| 93 | // set a couple of points smaller. |
| 94 | void drawHints(int screenW, int y, const std::string& text) |
| 95 | { |
| 96 | TextPool& pool = TextPool::get(); |
| 97 | const float scale = pool.fitScale(text, (float)screenW - 8.0f, 0.47f, 0.40f); |
| 98 | pool.drawCentered(text, 0, screenW, y, scale, COLOR_MUTED); |
| 99 | } |
| 100 | |
| 101 | // Layout of the Save / Extdata segmented control in the bottom header. Both |
| 102 | // drawBottom() and the touch hit-test derive from this so the box and the |
no test coverage detected