From 74e518fee01564436b7e3980d075c6f6c5a3d93a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Jan 2025 16:21:10 -0600 Subject: [PATCH] [nostalgia/core/studio/tilesheeteditor] Fix select all not to go beyond end --- .../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 ad047abd..f38496b7 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp @@ -188,7 +188,7 @@ void TileSheetEditorImGui::draw(studio::StudioContext&) noexcept { if (ImGui::IsKeyDown(ImGuiKey_ModCtrl)) { if (ImGui::IsKeyPressed(ImGuiKey_A)) { auto const&img = m_model.activeSubSheet(); - m_model.setSelection({{}, {img.columns * TileWidth, img.rows * TileHeight}}); + m_model.setSelection({{}, {img.columns * TileWidth - 1, img.rows * TileHeight - 1}}); } else if (ImGui::IsKeyPressed(ImGuiKey_G)) { m_model.clearSelection(); }