[nostalgia/core/studio] Fix PaletteEditor 0 key shortcut
All checks were successful
Build / build (push) Successful in 2m32s
All checks were successful
Build / build (push) Successful in 2m32s
This commit is contained in:
parent
84cb03d807
commit
c711f4358e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user