Repository navigation
Stop map labels wrapping onto the left edge - #36
Open
foremanjf80 wants to merge 1 commit into
Open
foremanjf80 wants to merge 1 commit into
foremanjf80 wants to merge 1 commit into
Conversation
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 was referenced Nov 28, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Touches only
DeckHW.cppandfatalError(), plus the version bump (see #29).🤖 Generated with Claude Code