Skip to content

fix: correct hidpi rendering on macos#16

Open
53053 wants to merge 1 commit into
zmeadows:masterfrom
53053:fix/hidpi-blurry-rendering
Open

fix: correct hidpi rendering on macos#16
53053 wants to merge 1 commit into
zmeadows:masterfrom
53053:fix/hidpi-blurry-rendering

Conversation

@53053

@53053 53053 commented Apr 25, 2026

Copy link
Copy Markdown

edit: it seems this project may be inactive at the moment, though this patch has been working correctly in my own use so i’ll keep the PR up in case it helps someone else.

there are also some forks like yigithanyigit/lldbg that appear to include additional fixes and improvements.

if development resumes here in the future, i’d still be glad to help and contribute 🙂


fix: correct retina/hidpi rendering on macos

details
  • Fixes blurry rendering on retina/high-dpi displays by consistently separating logical window coordinates from physical framebuffer sizes.

  • Fonts are now scaled using the window content scale, glviewport uses framebuffer dimensions, and resize/layout calculations stay in logical coordinates as expected by imgui.

should be effectively a no-op on 1x displays, tested mainly on macos retina.

screenshots

zoom-in anywhere to notice.

before (retina, 2x scale):

1

after:

2

tested on apple silicon, macos, 2x retina. imgui 1.90.9.

related

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.

1 participant