mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-22 20:45:11 +00:00
asdfasdfasdf
This commit is contained in:
parent
8ff8ee89e9
commit
8099df183d
2 changed files with 9 additions and 4 deletions
|
@ -72,7 +72,7 @@ void FurnaceGUI::drawCSPlayer() {
|
|||
for (int i=0; i<chans; i++) {
|
||||
DivCSChannelState* state=cs->getChanState(i);
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("$%x",state->readPos);
|
||||
ImGui::Text("$%.4x",state->readPos);
|
||||
}
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
@ -80,11 +80,12 @@ void FurnaceGUI::drawCSPlayer() {
|
|||
float oneCharSize=ImGui::CalcTextSize("A").x;
|
||||
float threeCharSize=ImGui::CalcTextSize("AA").x;
|
||||
float charViewSize=ImGui::CalcTextSize("0123456789ABCDEF").x;
|
||||
float fiveCharSize=ImGui::CalcTextSize("AAAAA").x;
|
||||
|
||||
if (ImGui::BeginTable("CSHexPos",19)) {
|
||||
if (ImGui::BeginTable("CSHexView",19,ImGuiTableFlags_ScrollY)) {
|
||||
char charView[17];
|
||||
ImGui::TableSetupScrollFreeze(1,1);
|
||||
ImGui::TableSetupColumn("addr",ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("addr",ImGuiTableColumnFlags_WidthFixed,fiveCharSize);
|
||||
ImGui::TableSetupColumn("d0",ImGuiTableColumnFlags_WidthFixed,threeCharSize);
|
||||
ImGui::TableSetupColumn("d1",ImGuiTableColumnFlags_WidthFixed,threeCharSize);
|
||||
ImGui::TableSetupColumn("d2",ImGuiTableColumnFlags_WidthFixed,threeCharSize);
|
||||
|
@ -105,7 +106,7 @@ void FurnaceGUI::drawCSPlayer() {
|
|||
ImGui::TableSetupColumn("char",ImGuiTableColumnFlags_WidthFixed,charViewSize);
|
||||
|
||||
// header
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
|
||||
ImGui::TableNextColumn();
|
||||
for (int i=0; i<16; i++) {
|
||||
ImGui::TableNextColumn();
|
||||
|
@ -134,6 +135,7 @@ void FurnaceGUI::drawCSPlayer() {
|
|||
for (int i=csClipper.DisplayStart; i<csClipper.DisplayEnd; i++) {
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg,ImGui::GetColorU32(ImGuiCol_TableHeaderBg));
|
||||
ImGui::Text("%.4X",i<<4);
|
||||
|
||||
for (int j=0; j<16; j++) {
|
||||
|
|
|
@ -1105,6 +1105,9 @@ float FurnaceGUI::calcBPM(const DivGroovePattern& speeds, float hz, int vN, int
|
|||
}
|
||||
|
||||
void FurnaceGUI::play(int row) {
|
||||
if (e->getStreamPlayer()) {
|
||||
e->killStream();
|
||||
}
|
||||
memset(chanOscVol,0,DIV_MAX_CHANS*sizeof(float));
|
||||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||
chanOscChan[i].pitch=0.0f;
|
||||
|
|
Loading…
Reference in a new issue