From daab4dc4f5861d882fdebb6d4129b65eaf218068 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 12 Jan 2025 14:55:50 -0600 Subject: [PATCH] [nostalgia/core/studio] Fix SubSheet editor to return an appropriately sized string --- .../core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp index f38496b7..ccce34e3 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp @@ -544,7 +544,7 @@ void TileSheetEditorImGui::SubSheetEditor::draw(turbine::Context &tctx) noexcept auto const popupHeight = modSize ? 130.f : 85.f; auto const popupSz = ImVec2{popupWidth, popupHeight}; if (ig::BeginPopup(tctx, popupName, m_show, popupSz)) { - ImGui::InputText("Name", m_name.data(), m_name.cap()); + ig::InputText("Name", m_name); if (modSize) { ImGui::InputInt("Columns", &m_cols); ImGui::InputInt("Rows", &m_rows);