mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 08:23:01 +00:00
Minor correction
This commit is contained in:
parent
3c9f61d869
commit
9974d2a1c9
3 changed files with 4 additions and 4 deletions
|
@ -33,6 +33,6 @@
|
||||||
// sample related
|
// sample related
|
||||||
#define DIV_MAX_SAMPLE_TYPE 4
|
#define DIV_MAX_SAMPLE_TYPE 4
|
||||||
|
|
||||||
typedef unsigned char ORDERTYPE;
|
typedef unsigned char PatternOrder;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define _ORDERS_H
|
#define _ORDERS_H
|
||||||
|
|
||||||
struct DivOrders {
|
struct DivOrders {
|
||||||
ORDERTYPE ord[DIV_MAX_CHANS][DIV_MAX_PATTERNS];
|
PatternOrder ord[DIV_MAX_CHANS][DIV_MAX_PATTERNS];
|
||||||
|
|
||||||
DivOrders() {
|
DivOrders() {
|
||||||
memset(ord,0,DIV_MAX_CHANS*DIV_MAX_PATTERNS);
|
memset(ord,0,DIV_MAX_CHANS*DIV_MAX_PATTERNS);
|
||||||
|
|
|
@ -177,10 +177,10 @@ void FurnaceGUI::drawOrders() {
|
||||||
e->lockSave([this,i,j]() {
|
e->lockSave([this,i,j]() {
|
||||||
if (changeAllOrders) {
|
if (changeAllOrders) {
|
||||||
for (int k=0; k<e->getTotalChannelCount(); k++) {
|
for (int k=0; k<e->getTotalChannelCount(); k++) {
|
||||||
if (e->curOrders->ord[k][i]<(ORDERTYPE)(DIV_MAX_PATTERNS-1)) e->curOrders->ord[k][i]++;
|
if (e->curOrders->ord[k][i]<(PatternOrder)(DIV_MAX_PATTERNS-1)) e->curOrders->ord[k][i]++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (e->curOrders->ord[j][i]<(ORDERTYPE)(DIV_MAX_PATTERNS-1)) e->curOrders->ord[j][i]++;
|
if (e->curOrders->ord[j][i]<(PatternOrder)(DIV_MAX_PATTERNS-1)) e->curOrders->ord[j][i]++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
e->walkSong(loopOrder,loopRow,loopEnd);
|
e->walkSong(loopOrder,loopRow,loopEnd);
|
||||||
|
|
Loading…
Reference in a new issue