GUI: one more change to the status bar

This commit is contained in:
tildearrow 2022-03-20 05:19:23 -05:00
parent b7fd410c1f
commit bdc29455cc
1 changed files with 8 additions and 1 deletions

View File

@ -354,7 +354,14 @@ void FurnaceGUI::drawSampleEdit() {
if (!sampleDragMode) {
if (sampleSelStart>=0 && sampleSelEnd>=0) {
statusBar+=fmt::sprintf(" (%d-%d)",sampleSelStart,sampleSelEnd);
int start=sampleSelStart;
int end=sampleSelEnd;
if (start>end) {
start^=end;
end^=start;
start^=end;
}
statusBar+=fmt::sprintf(" (%d-%d)",start,end);
}
}