ocornut / ocornut/imgui_test_engine

TestSuite: Framebuffer Mismatches on HiDPI (OSX) Laptop screen

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

Nobody has claimed this yet.

test suite
Dominant language
C++
Stars
629
Forks
83
PR merge metrics
No merged PRs in 30d

Description

Heads up - I'm using GLFW on OSX Ventura (M1, hiDPI) and the framebuffer is mismatched in the capture since I removed my normal-DPI monitor:

imgui_capture_0001

It's of a single window (capture tool).
Should look like (screenshot)
Screenshot 2023-01-25 at 2 37 31 PM.

I'm supposingglfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_TRUE) would solve it ... it's undefined for me as of this time. Looking into it.

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

Start by reproducing the mismatch in the capture tool on an M1 Mac running OSX Ventura with only the HiDPI laptop display connected. Inspect how GLFW framebuffer settings are used, including GLFW_COCOA_RETINA_FRAMEBUFFER, and compare the result with the expected screenshot; done means the single-window capture matches the expected dimensions and appearance.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos
Domain
desktop-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.