Draw an exact whole-number enlargement at fractional display scales
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- computer-graphics
Research direction
The payload names no files. Start where the window scale factor is rounded and the window size is requested in points, since that is where 1067x800 points becomes 1601x1200 pixels. Check the SDL logical presentation setting that the issue suggests for integer scaling. Done means a unit test with synthetic scale values passes, fractional scales produce an exact whole-number enlargement with borders, and the run no longer warns.
Written by the indexing model from the issue text.
Description
At a fractional display scale (for example Wayland at 150 %), the window factor rounds to 2 and the window is asked for in points; SDL turns 1067x800 points into 1601x1200 pixels, so the run warns and one game column is drawn 3 pixels wide.
Done when:
- At fractional scales the picture is an exact whole-number enlargement of the game frame, with any odd pixel left as a border (for example SDL's integer-scaled logical presentation), and no warning.
- A unit test with synthetic scale values; one manual check on a fractional Wayland scale.
Found in the review of #129.
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 94
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RustyZoo/RustyZoo
-
original-bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
original-bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
original-bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
original-bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
original-bug
Difficulty 4/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in RustyZoo/RustyZoo
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
dependencies effort:low flow:chore rust
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
jaroslawherod/micold-ai-ide#875 ·
Maintainers usually reply within 1 day
-
priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
storytold/photocraft#6286 · 1 comment ·
Maintainers usually reply within 1 day
-
Four problem loader browser tests fail on WindowsPossibly taken @Patriciaath999 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Kazakh (kk_KZ) and Georgian (ka_GE) system locales get English instead of the shipped translationsOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day