From 0457a09bb94e07b012cc34dd4b98ee229b681324 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 12 Sep 2025 11:39:32 +0200 Subject: [PATCH] Fixed obsoleted ImGuiConfigFlags_DpiEnableScaleFonts/_DpiEnableScaleViewports names from setting the equivalent io.ConfigDpiScaleFonts/io.ConfigDpiScaleViewports flag correctly (regression in 1.92). Fix e55415b. --- docs/CHANGELOG.txt | 3 +++ imgui.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index ce7fe2c26..a8e8838b5 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -102,6 +102,9 @@ Other Changes: Docking+Viewports Branch: +- DPI: Fixed obsoleted ImGuiConfigFlags_DpiEnableScaleFonts/_DpiEnableScaleViewports + names from setting the equivalent io.ConfigDpiScaleFonts/io.ConfigDpiScaleViewports + flag correctly (regression in 1.92). - Backends: GLFW: improve multi-viewport behavior in tiling WMs on X11. Note: using GLFW backend on Linux/BSD etc. requires linking with `-lX11`. (#8884, #8474, #8289, #2117) [@Ikos3k, @Madman10K] diff --git a/imgui.cpp b/imgui.cpp index 2645977cf..18f240bd0 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -412,6 +412,7 @@ IMPLEMENTING SUPPORT for ImGuiBackendFlags_RendererHasTextures: - TL;DR; if the assert triggers, you can add a Dummy({0,0}) call to validate extending parent boundaries. - 2025/06/11 (1.92.0) - Renamed/moved ImGuiConfigFlags_DpiEnableScaleFonts -> bool io.ConfigDpiScaleFonts. - Renamed/moved ImGuiConfigFlags_DpiEnableScaleViewports -> bool io.ConfigDpiScaleViewports. **Neither of those flags are very useful in current code. They will be useful once we merge font changes.** + [there was a bug on 2025/06/12: when using the old config flags names, they were not imported correctly into the new ones, fixed on 2025/09/12] - 2025/06/11 (1.92.0) - THIS VERSION CONTAINS THE LARGEST AMOUNT OF BREAKING CHANGES SINCE 2015! I TRIED REALLY HARD TO KEEP THEM TO A MINIMUM, REDUCE THE AMOUNT OF INTERFERENCES, BUT INEVITABLY SOME USERS WILL BE AFFECTED. IN ORDER TO HELP US IMPROVE THE TRANSITION PROCESS, INCL. DOCUMENTATION AND COMMENTS, PLEASE REPORT **ANY** DOUBT, CONFUSION, QUESTIONS, FEEDBACK TO: https://github.com/ocornut/imgui/issues/ As part of the plan to reduce impact of API breaking changes, several unfinished changes/features/refactors related to font and text systems and scaling will be part of subsequent releases (1.92.1+). @@ -11342,12 +11343,12 @@ static void ImGui::ErrorCheckNewFrameSanityChecks() } if (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) { - g.IO.ConfigDpiScaleFonts = false; + g.IO.ConfigDpiScaleFonts = true; g.IO.ConfigFlags &= ~ImGuiConfigFlags_DpiEnableScaleFonts; } if (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) { - g.IO.ConfigDpiScaleViewports = false; + g.IO.ConfigDpiScaleViewports = true; g.IO.ConfigFlags &= ~ImGuiConfigFlags_DpiEnableScaleViewports; }