mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
really allow 8 effect columns
third time is the charm
This commit is contained in:
parent
6b2819019c
commit
f39e522e7e
4 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <queue>
|
||||
|
||||
#define DIV_VERSION "0.4.5"
|
||||
#define DIV_ENGINE_VERSION 25
|
||||
#define DIV_ENGINE_VERSION 26
|
||||
|
||||
enum DivStatusView {
|
||||
DIV_STATUS_NOTHING=0,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
static DivPattern emptyPat;
|
||||
|
||||
DivPattern::DivPattern() {
|
||||
memset(data,-1,256*16*sizeof(short));
|
||||
memset(data,-1,256*32*sizeof(short));
|
||||
for (int i=0; i<256; i++) {
|
||||
data[i][0]=0;
|
||||
data[i][1]=0;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "safeReader.h"
|
||||
|
||||
struct DivPattern {
|
||||
short data[256][16];
|
||||
short data[256][32];
|
||||
SafeReader* compile(int len=256, int fxRows=1);
|
||||
DivPattern();
|
||||
};
|
||||
|
|
|
@ -1486,7 +1486,7 @@ void FurnaceGUI::drawPattern() {
|
|||
}
|
||||
ImGui::EndDisabled();
|
||||
ImGui::SameLine();
|
||||
ImGui::BeginDisabled(e->song.pat[i].effectRows>=4);
|
||||
ImGui::BeginDisabled(e->song.pat[i].effectRows>=8);
|
||||
snprintf(chanID,256,">##_RCH%d",i);
|
||||
if (ImGui::SmallButton(chanID)) {
|
||||
e->song.pat[i].effectRows++;
|
||||
|
@ -2217,7 +2217,7 @@ void FurnaceGUI::makeUndo(ActionType action) {
|
|||
for (int i=0; i<e->getTotalChannelCount(); i++) {
|
||||
DivPattern* p=e->song.pat[i].getPattern(e->song.orders.ord[i][order],false);
|
||||
for (int j=0; j<e->song.patLen; j++) {
|
||||
for (int k=0; k<16; k++) {
|
||||
for (int k=0; k<32; k++) {
|
||||
if (p->data[j][k]!=oldPat[i]->data[j][k]) {
|
||||
s.pat.push_back(UndoPatternData(i,e->song.orders.ord[i][order],j,k,oldPat[i]->data[j][k],p->data[j][k]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue