fix(compass): move "move to set heading" hint below the ring

The no-heading hint was centred on the compass circle, overlapping the
ring. Draw it in the bottom readout band instead so the ring stays clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-06-04 09:37:37 +02:00
parent 2e7416d7ed
commit 3bcb94ec10

View File

@@ -56,8 +56,11 @@ public:
display.fillRect(cx, cy - r - 1, 1, 2);
if (!have) {
display.drawTextCentered(cx, cy - display.getLineHeight() / 2, "move to");
display.drawTextCentered(cx, cy + display.getLineHeight() / 2, "set heading");
// No stable heading yet — keep the ring as context but put the hint in
// the bottom readout band so it doesn't overlap the circle.
int lh = display.getLineHeight();
display.drawTextCentered(cx, bottom + 1, "move to");
display.drawTextCentered(cx, bottom + 1 + lh, "set heading");
return 1000;
}