Fixed blurry fonts in GLFW backend when using -ffast-math

This commit is contained in:
deggua 2023-06-18 03:12:03 -04:00
parent 194916135a
commit 65cc1a8355
1 changed files with 1 additions and 1 deletions

View File

@ -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)