From 969272c4fb2d226306aa0ec97c1113003f329f72 Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Sun, 7 Jan 2024 23:42:00 +0100 Subject: [PATCH] Draw long note tails behind markers --- CHANGELOG.md | 5 +++++ src/editor_state.cpp | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a3ee24..c9f2b7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# v2.0.3 + +## 🗿 Bugfixes 🗿 +- Draw long note tails behind markers + # v2.0.2 ## 🗿 Bugfixes 🗿 diff --git a/src/editor_state.cpp b/src/editor_state.cpp index dd1a105..471ccf3 100644 --- a/src/editor_state.cpp +++ b/src/editor_state.cpp @@ -520,6 +520,9 @@ void EditorState::display_playfield(const Markers::marker_type& opt_marker, Judg ); } + ImGui::SetCursorPos({0, TitlebarHeight}); + ImGui::Image(playfield.long_note.layer); + auto display = VariantVisitor { [&, this](const better::TapNote& tap_note){ auto note_offset = (this->current_time() - this->time_at(tap_note.get_time())); @@ -576,8 +579,6 @@ void EditorState::display_playfield(const Markers::marker_type& opt_marker, Judg } } - ImGui::SetCursorPos({0, TitlebarHeight}); - ImGui::Image(playfield.long_note.layer); ImGui::SetCursorPos({0, TitlebarHeight}); ImGui::Image(playfield.long_note_marker_layer); ImGui::SetCursorPos({0, TitlebarHeight});