https://gitlab.synchro.net/main/sbbs/-/commit/28800fb9114d146eaf591669
Modified Files:
src/doors/syncconquer/door/door_io.c
Log Message:
syncalert: fit-toggle fixes and a tighter stats overlay
Three fixes to the Ctrl-F Aspect<->Fill display toggle and the Ctrl-S
stats overlay:
- Clearing: door_fit_toggle() forced a repaint but not a screen clear,
so switching Fill (full-width) -> Aspect (narrower, centered) left the
old wider frame's pixels bleeding through the newly-exposed side
margins. Request a clear, as door_tier_cycle() already does when the
image re-centers.
- Fill centering: Fill set the emitted width to the whole canvas width
and centered on that, but door_emit_sixel then clamps sixel width to
DOOR_SCALE_MAX. On a canvas wider than the cap the image landed
flush-left with a lopsided right margin. Apply the same cap in
door_calc_rect (sixel only) before centering so it stays symmetric.
- Overlay: add a "fill" token (shown only in Fill mode, like "blob"),
drop the space before the rate unit, round bytes/frame to KB, and
remove the redundant trailing space, so the widest line (JXL with
both blob and fill) fits one 80-column row instead of truncating.
Co-Authored-By: Claude Opus 4.8 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net