get rid of the hack
This commit is contained in:
parent
6473b5bd12
commit
54b31f7fc1
1 changed files with 3 additions and 5 deletions
|
|
@ -928,11 +928,9 @@ void FurnaceGUI::drawChanOsc() {
|
|||
}
|
||||
case 'n': {
|
||||
DivChannelState* chanState=e->getChanState(ch);
|
||||
// ik its pretty hacky but it works
|
||||
// the templated stuff is after the member we need to access so it shouldnt matter
|
||||
// and no segfaults should occur
|
||||
SharedChannel<char>* chan=(SharedChannel<char>*)e->getDispatchChanState(ch);
|
||||
if (chanState==NULL || chan==NULL || !chan->active) {
|
||||
if (chanState==NULL) {
|
||||
text+="---";
|
||||
} else if (!chanState->keyOn) {
|
||||
text+="---";
|
||||
} else {
|
||||
// no more conversion necessary after the note/octave unification :>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue