From 186a0ce69f86a370308cdfba5fca4afd600b9413 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 29 Jun 2025 05:06:06 -0500 Subject: [PATCH] GUI: new pattern cursor logic, part 6 --- src/gui/editing.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/editing.cpp b/src/gui/editing.cpp index 296674524..c5eb04e3e 100644 --- a/src/gui/editing.cpp +++ b/src/gui/editing.cpp @@ -303,6 +303,10 @@ void FurnaceGUI::doSelectAll() { } float aspect=float(selEndX-selStartX+1)/float(selEnd.y-selStart.y+1); + if (selStart.order!=selEnd.order) { + // guarantee vertical aspect ratio + aspect=0.0f; + } if (aspect<=1.0f && !(selStart.y==0 && selEnd.y==e->curSubSong->patLen-1)) { // up-down selStart.y=0; selEnd.y=e->curSubSong->patLen-1;