per-channel colors
cherry-picked from ffcfc51a086de91ed67a5b144fec82b010b5acb8, but without the tri-state checkbox sorry for being impatient again, im bored and have nothing to do
This commit is contained in:
parent
7f9baedc89
commit
fa0e5494ad
4 changed files with 28 additions and 2 deletions
|
|
@ -642,6 +642,7 @@ void DivSong::findSubSongs(int chans) {
|
|||
memcpy(theCopy->chanShow,i->chanShow,DIV_MAX_CHANS*sizeof(bool));
|
||||
memcpy(theCopy->chanShowChanOsc,i->chanShowChanOsc,DIV_MAX_CHANS*sizeof(bool));
|
||||
memcpy(theCopy->chanCollapse,i->chanCollapse,DIV_MAX_CHANS);
|
||||
memcpy(theCopy->chanColor,i->chanColor,DIV_MAX_CHANS*sizeof(unsigned int));
|
||||
|
||||
for (int k=0; k<DIV_MAX_CHANS; k++) {
|
||||
theCopy->chanName[k]=i->chanName[k];
|
||||
|
|
|
|||
|
|
@ -219,6 +219,7 @@ struct DivSubSong {
|
|||
unsigned char chanCollapse[DIV_MAX_CHANS];
|
||||
String chanName[DIV_MAX_CHANS];
|
||||
String chanShortName[DIV_MAX_CHANS];
|
||||
unsigned int chanColor[DIV_MAX_CHANS];
|
||||
|
||||
// song timestamps
|
||||
DivSongTimestamps ts;
|
||||
|
|
@ -249,6 +250,7 @@ struct DivSubSong {
|
|||
chanShow[i]=true;
|
||||
chanShowChanOsc[i]=true;
|
||||
chanCollapse[i]=0;
|
||||
chanColor[i]=0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue