diff --git a/src/engine/platform/pokey.cpp b/src/engine/platform/pokey.cpp index 08b6da9f0..da2ec7030 100644 --- a/src/engine/platform/pokey.cpp +++ b/src/engine/platform/pokey.cpp @@ -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]; } diff --git a/src/engine/platform/pokey.h b/src/engine/platform/pokey.h index 7e64c3c78..35bc595f3 100644 --- a/src/engine/platform/pokey.h +++ b/src/engine/platform/pokey.h @@ -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(); diff --git a/src/gui/pattern.cpp b/src/gui/pattern.cpp index 83ba12ae1..99a46a8cb 100644 --- a/src/gui/pattern.cpp +++ b/src/gui/pattern.cpp @@ -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;