summaryrefslogtreecommitdiff
path: root/internal/display/font.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-18 10:10:39 +0200
committerPaul Buetow <paul@buetow.org>2026-02-18 10:10:39 +0200
commit69f5017434298f1ffd4cdc30c30b95d0f4bd344f (patch)
treec41a378bc8c4c7338f392cde7a4185658d4dfb12 /internal/display/font.go
parentf1951f2ee1e83d802030c257d4a1df099ec08976 (diff)
refactor: enforce Go best practices (function size, ordering, formatting)
- config: split set() (62L) into setSizeAndTuning() + setDisplayFlags() - collector: split Run() (70L) into Run + startLocalScanner + startRemoteScanner + parseCollectorStream + dispatchCollectorLine; each <30L - collector: remove unused script_embed.go (RemoteScript was dead code) - display: move newRunState constructor before Run() per constructor-first rule - display: replace loadPeak IIFE with a plain initLoadPeak variable - display: split handleKey() (114L) into handleToggleKeys + handleAdjustAndSave + handleResizeKeys; add nil guard in handleResizeKeys for test safety - display: split drawNetBarSmoothed() (75L) into drawNetBarSmoothed + smoothNetUtilization + drawNetHalves; each <30L - all: gofmt -w to fix formatting drift in display and config files All tests pass (go test ./...). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/display/font.go')
-rw-r--r--internal/display/font.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/display/font.go b/internal/display/font.go
index d6dae18..e936c4c 100644
--- a/internal/display/font.go
+++ b/internal/display/font.go
@@ -6,8 +6,8 @@ import "github.com/veandco/go-sdl2/sdl"
// Each glyph is 7 rows of 5 bits (MSB = leftmost pixel).
const (
- glyphW = 5 // pixels per character width
- glyphH = 7 // pixels per character height
+ glyphW = 5 // pixels per character width
+ glyphH = 7 // pixels per character height
charGap = 1 // horizontal gap between characters
)