From 352efeb89b784d7b4cb55320c8a0d052119f5fed Mon Sep 17 00:00:00 2001 From: Matt Blair Date: Mon, 8 Jan 2024 02:59:36 -0500 Subject: [PATCH] Fix imgui formatting arguments --- platforms/common/glfwApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/common/glfwApp.cpp b/platforms/common/glfwApp.cpp index 9cdfdd8c50..53fa34ec3f 100644 --- a/platforms/common/glfwApp.cpp +++ b/platforms/common/glfwApp.cpp @@ -699,11 +699,11 @@ void showMarkerGUI() { double screenPosition[2]; map->lngLatToScreenPosition(last_marker.coordinates.longitude, last_marker.coordinates.latitude, &screenPosition[0], &screenPosition[1]); float screenPositionFloat[2] = {static_cast(screenPosition[0]), static_cast(screenPosition[1])}; - ImGui::InputFloat2("Last Marker Screen", screenPositionFloat, 5, ImGuiInputTextFlags_ReadOnly); + ImGui::InputFloat2("Last Marker Screen", screenPositionFloat, "%.5f", ImGuiInputTextFlags_ReadOnly); double screenClipped[2]; map->lngLatToScreenPosition(last_marker.coordinates.longitude, last_marker.coordinates.latitude, &screenClipped[0], &screenClipped[1], true); float screenClippedFloat[2] = {static_cast(screenClipped[0]), static_cast(screenClipped[1])}; - ImGui::InputFloat2("Last Marker Clipped", screenClippedFloat, 5, ImGuiInputTextFlags_ReadOnly); + ImGui::InputFloat2("Last Marker Clipped", screenClippedFloat, "%.5f", ImGuiInputTextFlags_ReadOnly); } } }