mirror of
https://github.com/digarok/b2d.git
synced 2026-10-24 21:02:23 +00:00
ConvertMono seeks to the stored row for image line 2y, but read the second line of the pair sequentially — which in a bottom-up BMP is the stored row above (image line 2y-1), not below; the pos -= packet only updated the variable. Output line 0 averaged the top line with a read past EOF, every other line averaged with the previous line instead of the next, and the bottom source line was never read — a half-line vertical phase shift in 560x384 color mono conversions. Seek to the decremented pos so the pair is image lines 2y and 2y+1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCcEM6zYoVcXQt5YfvFo16