arc and ellipse are not presented to the visual backend

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
rust

Research direction

Start in shapes.rs at shapes::arc (line 119) and shapes::ellipse (line 214), comparing their visual-backend handling with line, circle, rectangle, and putpixel. Add the corresponding draw-and-present behavior while respecting batch_mode. Run a visual-backend configuration and verify that arcs and ellipses appear in the window.

Written by the indexing model from the issue text.

Description

bug good first issue kilo-auto-fix kilo-triaged parity regression

shapes::arc (shapes.rs:119) and shapes::ellipse (shapes.rs:214) write to the page buffer but lack the #[cfg(feature = "visual-backend")] present block that line/circle/rectangle/putpixel have. Result: nothing appears in the window.

Fix: add the same draw+present block (respecting batch_mode).

Acceptance: arc/ellipse visible in visual-backend run.


Part of #3.

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunsided/bgi

All issues in sunsided/bgi

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.