Skip to content

Stop map labels wrapping onto the left edge - #36

Open
foremanjf80 wants to merge 1 commit into
meshdeck-os:mainfrom
foremanjf80:fix/text-wrap-off
Open

foremanjf80 wants to merge 1 commit into
meshdeck-os:mainfrom
foremanjf80:fix/text-wrap-off

Conversation

@foremanjf80

@foremanjf80 foremanjf80 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #35.

Adafruit GFX starts with text wrap on, so a label printed near the right edge continued at x = 0 one line down. On a map with many repeaters this left a garbled block of "ghost" names on the left (photo in #35). Only the chat renderer and the repeater console turned wrap off, so whether it happened depended on which screens had been opened since boot.

Changes

  • DeckHW::begin(): setTextWrap(false) right after the canvas is created, so text clips at the edge on every screen.
  • UITask::fatalError(): turns wrap back on for its own long size-2 message.

Tested on a T-Deck

  • After a reboot, without opening Chat: the ghost text is gone from my local map with many repeaters, and the UK view clips "Ams" and "Bruss" at the right edge.

Touches only DeckHW.cpp and fatalError(), plus the version bump (see #29).

🤖 Generated with Claude Code

Adafruit GFX starts with text wrap on, so a label printed near the right
edge continued at x = 0 one line down. On a map with many repeaters to
the east, their names showed up as garbled "ghost" text on the left.
Only the chat and repeater console turned wrap off, so whether it
happened depended on which screens had been opened since boot.

Turn wrap off once when the canvas is created. The fatal-error screen,
which prints a long message at size 2, turns it back on for itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map labels near the right edge wrap onto the left edge ("ghost" text)

1 participant