mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
parent
7b2fa42d25
commit
4e333787ff
1 changed files with 8 additions and 0 deletions
|
@ -344,6 +344,10 @@ void FurnaceGUI::moveCursorPrevChannel(bool overflow) {
|
|||
}
|
||||
e->setMidiBaseChan(cursor.xCoarse);
|
||||
|
||||
int xFineMax=(e->curSubSong->chanCollapse[cursor.xCoarse]?(4-e->curSubSong->chanCollapse[cursor.xCoarse]):(3+e->curPat[cursor.xCoarse].effectCols*2));
|
||||
if (cursor.xFine<0) cursor.xFine=0;
|
||||
if (cursor.xFine>=xFineMax) cursor.xFine=xFineMax-1;
|
||||
|
||||
selStart=cursor;
|
||||
selEnd=cursor;
|
||||
demandScrollX=true;
|
||||
|
@ -368,6 +372,10 @@ void FurnaceGUI::moveCursorNextChannel(bool overflow) {
|
|||
}
|
||||
e->setMidiBaseChan(cursor.xCoarse);
|
||||
|
||||
int xFineMax=(e->curSubSong->chanCollapse[cursor.xCoarse]?(4-e->curSubSong->chanCollapse[cursor.xCoarse]):(3+e->curPat[cursor.xCoarse].effectCols*2));
|
||||
if (cursor.xFine<0) cursor.xFine=0;
|
||||
if (cursor.xFine>=xFineMax) cursor.xFine=xFineMax-1;
|
||||
|
||||
selStart=cursor;
|
||||
selEnd=cursor;
|
||||
demandScrollX=true;
|
||||
|
|
Loading…
Reference in a new issue