GUI: one more change to the status bar
This commit is contained in:
parent
b7fd410c1f
commit
bdc29455cc
|
@ -354,7 +354,14 @@ void FurnaceGUI::drawSampleEdit() {
|
||||||
|
|
||||||
if (!sampleDragMode) {
|
if (!sampleDragMode) {
|
||||||
if (sampleSelStart>=0 && sampleSelEnd>=0) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue