Skip to content

fix: add bresenham for arbitrary lines#923

Merged
daveallie merged 1 commit intocrosspoint-reader:masterfrom
jpirnay:fix-lines
Feb 19, 2026
Merged

fix: add bresenham for arbitrary lines#923
daveallie merged 1 commit intocrosspoint-reader:masterfrom
jpirnay:fix-lines

Conversation

@jpirnay
Copy link
Contributor

@jpirnay jpirnay commented Feb 16, 2026

Summary

  • GfxRender did handle horizontal and vertical lines but had a TODO for arbitrary lines.
  • Added integer based Bresenham line drawing

Additional Context


AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? NO

Copy link
Contributor

@znelson znelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reads correct to me. I'd guess there's nowhere in the UI we exercise this right now, given that it logged an error before. Were you able to demonstrate any tests locally?

@jpirnay
Copy link
Contributor Author

jpirnay commented Feb 16, 2026

Reads correct to me. I'd guess there's nowhere in the UI we exercise this right now, given that it logged an error before. Were you able to demonstrate any tests locally?

I encountered it when I wanted to draw an "X" on a bitmap indicating that a cover file could not be found.

@jpirnay
Copy link
Contributor Author

jpirnay commented Feb 17, 2026

Just a test case

screenshot.bmp

@daveallie daveallie merged commit e70066e into crosspoint-reader:master Feb 19, 2026
7 checks passed
saslv pushed a commit to saslv/crosspoint-reader that referenced this pull request Feb 19, 2026
## Summary

* GfxRender did handle horizontal and vertical lines but had a TODO for
arbitrary lines.
* Added integer based Bresenham line drawing 
  
## Additional Context

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_
el pushed a commit to el/crosspoint-reader that referenced this pull request Feb 19, 2026
## Summary

* GfxRender did handle horizontal and vertical lines but had a TODO for
arbitrary lines.
* Added integer based Bresenham line drawing 
  
## Additional Context

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_
@jpirnay jpirnay deleted the fix-lines branch February 20, 2026 09:27
lukestein pushed a commit to lukestein/crosspoint-reader that referenced this pull request Feb 20, 2026
## Summary

* GfxRender did handle horizontal and vertical lines but had a TODO for
arbitrary lines.
* Added integer based Bresenham line drawing 
  
## Additional Context

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_
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.

4 participants