https://gitlab.synchro.net/main/sbbs/-/commit/6fefefaa65b8c7bb75a4c05a
Modified Files:
src/doors/syncdoom/syncdoom.c
Log Message:
syncdoom: anchor mouse steering to the image + cap sixel size
Two fixes for terminal mouse steering in a window much larger than the
rendered game (notably xterm sixel):
- Steer relative to the IMAGE, not the window. The steer center and
full-deflection span are now taken from the rendered image's cell
rectangle (g_img_col + width) instead of the terminal's center. With a
letterboxed or top-left-anchored image the old window-center put the
"idle" point out in the black margin, so the player spun until the
pointer was dragged off into empty space; now idle sits on the picture's
center and the image edge is full turn. Exact once the terminal's real
cell size is known (SyncTERM always; xterm with allowWindowOps).
- Never upscale the sixel past native 640x400, even when real pixel
geometry was measured. Sixel is near-raw RLE, so a window-filling sixel
on a large console is both too big for the terminal to render and a huge
per-frame payload that stalls the DSR pacing -- the door froze on a blank
screen once allowWindowOps let xterm report a big window. The 640 cap was
previously skipped when geometry was known; sixel is impractical to
upscale regardless. JXL/PPM (real compression) keep the full scale_max.
Co-Authored-By: Claude Opus 4.8 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net