From a8b827af54731139a4516e987077f75bfc139c8b Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 24 Apr 2026 09:02:56 -0600 Subject: [PATCH] [wpigui] Rename ini setting from userScale to userScaling (#8804) This avoids very small text resulting from an upgrade. --- wpigui/src/main/native/cpp/wpigui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpigui/src/main/native/cpp/wpigui.cpp b/wpigui/src/main/native/cpp/wpigui.cpp index 2c7c829202..479f9ccb8e 100644 --- a/wpigui/src/main/native/cpp/wpigui.cpp +++ b/wpigui/src/main/native/cpp/wpigui.cpp @@ -98,7 +98,7 @@ static void IniReadLine(ImGuiContext* ctx, ImGuiSettingsHandler* handler, impl->xPos = num; } else if (std::strncmp(lineStr, "ypos=", 5) == 0) { impl->yPos = num; - } else if (std::strncmp(lineStr, "userScale=", 10) == 0) { + } else if (std::strncmp(lineStr, "userScaling=", 12) == 0) { impl->userScale = num; } else if (std::strncmp(lineStr, "style=", 6) == 0) { impl->style = num; @@ -116,7 +116,7 @@ static void IniWriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, } out_buf->appendf( "[MainWindow][GLOBAL]\nwidth=%d\nheight=%d\nmaximized=%d\n" - "xpos=%d\nypos=%d\nuserScale=%d\nstyle=%d\nfont=%s\nfps=%d\n\n", + "xpos=%d\nypos=%d\nuserScaling=%d\nstyle=%d\nfont=%s\nfps=%d\n\n", gContext->width, gContext->height, gContext->maximized ? 1 : 0, gContext->xPos, gContext->yPos, gContext->userScale, gContext->style, gContext->defaultFontName.c_str(), gContext->fps);