openframeworks / openframeworks/openFrameworks

Pixel stretch and draw origin off-window on Windows 10

Open
#6,379 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Attempting to run sketches in OF_WINDOW mode using VS 2017 and Windows 10 results in the drawing origin being offset outside the window frame [circa (-10,-38) from the top left], and the pixel ratios being stretched, perhaps to compensate.

This causes issues with both accurate drawing and also any coordinated mouse interaction.

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce an OF_WINDOW sketch with Visual Studio 2017 on Windows 10 and observe the reported origin offset and stretched pixel ratio. Verify that drawing coordinates and mouse interactions align with the visible window frame; the issue does not mention specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.