From 65cc1a8355c934c147490b0317b6109c884de675 Mon Sep 17 00:00:00 2001 From: deggua <26562606+deggua@users.noreply.github.com> Date: Sun, 18 Jun 2023 03:12:03 -0400 Subject: [PATCH] Fixed blurry fonts in GLFW backend when using -ffast-math --- backends/imgui_impl_glfw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_glfw.cpp b/backends/imgui_impl_glfw.cpp index 0858cddbd..aae88eba9 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -778,7 +778,7 @@ void ImGui_ImplGlfw_NewFrame() glfwGetFramebufferSize(bd->Window, &display_w, &display_h); io.DisplaySize = ImVec2((float)w, (float)h); if (w > 0 && h > 0) - io.DisplayFramebufferScale = ImVec2((float)display_w / (float)w, (float)display_h / (float)h); + io.DisplayFramebufferScale = ImVec2((double)display_w / (double)w, (double)display_h / (double)h); // Setup time step // (Accept glfwGetTime() not returning a monotonically increasing value. Seems to happens on disconnecting peripherals and probably on VMs and Emscripten, see #6491, #6189, #6114, #3644)