https://gitlab.synchro.net/main/sbbs/-/commit/530d43ff4b90871bb306feac
Modified Files:
src/doors/syncconquer/door/door_input.c
Log Message:
syncalert: make the map edge-scroll reachable on cell-granular terminals
Red Alert scrolls the tactical map when the cursor reaches a viewport
edge. On a cell-granular terminal (SyncTERM) the mouse mapper placed the
cursor at each cell's centre, so the last row/column centre landed ch/2
or cw/2 px short of the far canvas edge -- inside RA's edge-scroll zone's
blind spot -- and the map wouldn't scroll down or right. It only worked
in the sixel tier by accident: its reserved bottom row let the coordinate
clamp snap to the true edge.
Snap the far edge cells (last row/column) to the image-rect edge in cell
mode so scroll-down/right is reachable in every tier. Pixel-reporting
clients (SGR-Pixels 1016) already reach the edges natively and are left
alone. The near edges (first row/column) deliberately keep the cell
centre -- snapping the top row to y=0 would drag menu-tab clicks into the scroll-up zone and make the tabs unclickable.
Co-Authored-By: Claude Opus 4.8 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net