From 265b22214e28b75f73bcdb8fa42e86ff59598a86 Mon Sep 17 00:00:00 2001 From: Duckie Date: Sat, 16 Mar 2024 00:13:01 +0530 Subject: [PATCH] fix: broken code --- Editor/Panels/ResourceBrowserPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/Panels/ResourceBrowserPanel.cpp b/Editor/Panels/ResourceBrowserPanel.cpp index cb64cd32..d236210e 100644 --- a/Editor/Panels/ResourceBrowserPanel.cpp +++ b/Editor/Panels/ResourceBrowserPanel.cpp @@ -307,7 +307,7 @@ namespace DT bool onColumnLayout = itemSize >= columnSwitchSize; - ImGui::ImageWithInputText((ImTextureID)(uintptr_t)iconId, "##inputNewFile", buf, IM_ARRAYSIZE(buf), {itemSize, itemSize}, {0, 1}, {1, 0}, onColumnLayout); + ImGui::ImageWithInputText((ImTextureID)(uintptr_t)iconId, "##inputNewFile", buf, IM_ARRAYSIZE(buf), {static_cast(itemSize), static_cast(itemSize)}, {0, 1}, {1, 0}, onColumnLayout); ImGui::SetKeyboardFocusHere(-1); if (ImGui::IsItemDeactivatedAfterEdit() || ImGui::IsKeyPressed(ImGuiKey_Enter)) {