Skip to content

Measure the HAM left border clear from its start pointer - #622

Merged
tonioni merged 1 commit into
tonioni:masterfrom
midwan:fix/ham-left-border-clear
Nov 3, 2026
Merged

tonioni merged 1 commit into
tonioni:masterfrom
midwan:fix/ham-left-border-clear

Conversation

@midwan

@midwan midwan commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The fast-mode HAM left-border clear starts at buf1p, but its length was
clamped with the advanced output cursor buf1. With full_line_draw (for
example genlock) draw_blank_end() has already moved buf1 to
xlinebuffer_end, so the clear was always skipped; otherwise it could be
cut short by the unrelated space left at the right edge. Clamp against
the remaining space from buf1p.

Found while porting 45d7458 to Amiberry (BlitterStudio/amiberry#2595), which has the same fix.

The fast-mode HAM left-border clear starts at buf1p, but its length was
clamped with the advanced output cursor buf1. With full_line_draw (for
example genlock) draw_blank_end() has already moved buf1 to
xlinebuffer_end, so the clear was always skipped; otherwise it could be
cut short by the unrelated space left at the right edge. Clamp against
the remaining space from buf1p.
@tonioni
tonioni merged commit 420ff43 into tonioni:master Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants