fix(draw): restore the 1.0.0 signatures of bj_draw_line and bj_draw_polyline #179
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
OragonEfreet/banjo!179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/restore-line-abi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Passing the line mode as a parameter changed both signatures published in
1.0.0, which SemVer reserves for a major release. main is 1.1.0-alpha and
1.0.0 shipped on 2026-07-26, so that break was not one Banjo could make
yet.
Both functions take their original parameters again and draw a stepped
line. The mode moves to bj_draw_line_mode and bj_draw_polyline_mode,
which keep the bj_line_mode enum rather than spelling each mode as its
own function: a third mode will cost no new entry point, and only these
forms can take the mode from a variable.
bj_draw_line keeps its inline walk and bj_draw_line_mode calls into it,
not the other way round, so the hottest drawing loop gains no indirection.
Checked against release/1.0: every exported declaration of 1.0.0 is
unchanged, and a program written against those signatures recompiles
untouched and produces identical pixels.
Also date the 1.0.0 release in the changelog, which still read 2026-XX-XX.