[nostalgia/core/studio] Fix PaletteEditor 0 key shortcut
All checks were successful
Build / build (push) Successful in 2m32s

This commit is contained in:
Gary Talent 2024-09-28 21:42:11 -05:00
parent 84cb03d807
commit c711f4358e

View File

@ -260,8 +260,8 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
m_selectedColorRow = i;
}
}
if (ImGui::GetIO().KeysDown[ImGuiKey_0]) {
m_selectedColorRow = ox::min<size_t>(9, largestPage(m_pal));
if (ImGui::IsKeyPressed(ImGuiKey_0, false)) {
m_selectedColorRow = ox::min<size_t>(9, largestPage(m_pal) - 1);
}
}
auto const newColor = color16(r, g, b, a);