Skip to content

Commit

Permalink
fix: broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbaburajan committed Mar 15, 2024
1 parent d85d0db commit 265b222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Panels/ResourceBrowserPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(itemSize), static_cast<float>(itemSize)}, {0, 1}, {1, 0}, onColumnLayout);
ImGui::SetKeyboardFocusHere(-1);
if (ImGui::IsItemDeactivatedAfterEdit() || ImGui::IsKeyPressed(ImGuiKey_Enter))
{
Expand Down

0 comments on commit 265b222

Please sign in to comment.