GUI: new pattern cursor logic, part 6

This commit is contained in:
tildearrow 2025-06-29 05:06:06 -05:00
parent 75dca2f114
commit 186a0ce69f

View file

@ -303,6 +303,10 @@ void FurnaceGUI::doSelectAll() {
} }
float aspect=float(selEndX-selStartX+1)/float(selEnd.y-selStart.y+1); 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 if (aspect<=1.0f && !(selStart.y==0 && selEnd.y==e->curSubSong->patLen-1)) { // up-down
selStart.y=0; selStart.y=0;
selEnd.y=e->curSubSong->patLen-1; selEnd.y=e->curSubSong->patLen-1;