https://gitlab.synchro.net/main/sbbs/-/commit/7d5cbf75f9b80b4d7fad57ad
Modified Files:
src/doors/syncretro/test_dirty.c
Log Message:
syncretro: test the dirty-rect stranding fallback
sr_dirty_find()'s band_align pre-pass returns 0 (full-frame fallback)
when a bottom-clamped rect can't cover its own changed rows, but that
path had no test -- only the height-roundup path was covered. Add a
case that forces it: a single tall, narrow dirty column in a frame
whose height isn't a multiple of LCM(ch,6), so the vstep-aligned rect
falls short of the column's own changed-rows bottom.
Assert the same geometry with band_align=0 does NOT return 0, so the
test proves stranding is a band_align-specific behavior and not just
an always-empty result.
Co-Authored-By: Claude Opus 4.8 (1M context) <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)