GUI: channel pair hints, part 2

POKEY
This commit is contained in:
tildearrow 2023-10-08 04:07:26 -05:00
parent 4b008f4b41
commit 7fc734744d
3 changed files with 20 additions and 1 deletions

View file

@ -406,6 +406,24 @@ DivMacroInt* DivPlatformPOKEY::getChanMacroInt(int ch) {
return &chan[ch].std;
}
DivChannelPair DivPlatformPOKEY::getPaired(int ch) {
switch (ch) {
case 0:
if (audctl&4) return DivChannelPair("filter",2);
break;
case 1:
if (audctl&16) return DivChannelPair("16-bit",0);
break;
case 2:
if (audctl&8) return DivChannelPair("16-bit",3);
break;
case 3:
if (audctl&2) return DivChannelPair("filter",1);
break;
}
return DivChannelPair();
}
DivDispatchOscBuffer* DivPlatformPOKEY::getOscBuffer(int ch) {
return oscBuf[ch];
}

View file

@ -65,6 +65,7 @@ class DivPlatformPOKEY: public DivDispatch {
int dispatch(DivCommand c);
void* getChanState(int chan);
DivMacroInt* getChanMacroInt(int ch);
DivChannelPair getPaired(int chan);
DivDispatchOscBuffer* getOscBuffer(int chan);
unsigned char* getRegisterPool();
int getRegisterPoolSize();

View file

@ -999,7 +999,7 @@ void FurnaceGUI::drawPattern() {
}
}
}
chanHeadBottom=ImGui::GetCursorScreenPos().y;
chanHeadBottom=ImGui::GetCursorScreenPos().y-ImGui::GetStyle().ItemSpacing.y;
}
ImGui::TableNextColumn();
lastPatternWidth=ImGui::GetCursorPosX()-lpwStart+ImGui::GetStyle().ScrollbarSize;