mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +00:00
GUI: one more change to the status bar
This commit is contained in:
parent
b7fd410c1f
commit
bdc29455cc
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue