Skip to content

Use ImGui's native DPI scaling.#902

Merged
azonenberg merged 1 commit intongscopeclient:masterfrom
Elemecca:imgui-dpi
Sep 23, 2025
Merged

Use ImGui's native DPI scaling.#902
azonenberg merged 1 commit intongscopeclient:masterfrom
Elemecca:imgui-dpi

Conversation

@Elemecca
Copy link
Copy Markdown
Contributor

@Elemecca Elemecca commented Sep 23, 2025

This fixes #868. It also fixes an issue I was seeing where the scaling factor set in the OS was being rounded to the nearest integer factor (e.g. I use a 165% scaling factor, but ngscopeclient was rendering at 200%).

Dear ImGui added native support for DPI scaling in release 1.92 (June 2025). See their new FAQ entry on DPI handling. That feature is still experimental and so it could break on future ImGui updates, but it seems to work much better than what we were doing before.

It looks like the ImGUI GLFW backend already has the necessary conditionals to disable scaling on macOS, so I didn't disable the DPI awareness settings on that platform like we did before.

@azonenberg azonenberg merged commit fb68594 into ngscopeclient:master Sep 23, 2025
22 of 23 checks passed
@Elemecca Elemecca deleted the imgui-dpi branch September 23, 2025 18:42
@Elemecca Elemecca mentioned this pull request Oct 4, 2025
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.

High-DPI scaling is off

2 participants