|
@@ -16254,6 +16254,8 @@ void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* view
|
|
g.CurrentViewport = viewport;
|
|
g.CurrentViewport = viewport;
|
|
IM_ASSERT(g.CurrentDpiScale > 0.0f && g.CurrentDpiScale < 99.0f); // Typical correct values would be between 1.0f and 4.0f
|
|
IM_ASSERT(g.CurrentDpiScale > 0.0f && g.CurrentDpiScale < 99.0f); // Typical correct values would be between 1.0f and 4.0f
|
|
//IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0);
|
|
//IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0);
|
|
|
|
+ if (g.IO.ConfigDpiScaleFonts)
|
|
|
|
+ g.Style.FontScaleDpi = g.CurrentDpiScale;
|
|
|
|
|
|
// Notify platform layer of viewport changes
|
|
// Notify platform layer of viewport changes
|
|
// FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI
|
|
// FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI
|