fix build...
This commit is contained in:
parent
1421426b95
commit
413050e660
|
|
@ -126,6 +126,14 @@ void FurnaceGUI::readOsc() {
|
||||||
e->oscReadPos=readPos;
|
e->oscReadPos=readPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _pushPartBlend(const ImDrawList* drawList, const ImDrawCmd* cmd) {
|
||||||
|
if (cmd!=NULL) {
|
||||||
|
if (cmd->UserCallbackData!=NULL) {
|
||||||
|
((FurnaceGUI*)cmd->UserCallbackData)->pushPartBlend();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void FurnaceGUI::drawOsc() {
|
void FurnaceGUI::drawOsc() {
|
||||||
if (nextWindow==GUI_WINDOW_OSCILLOSCOPE) {
|
if (nextWindow==GUI_WINDOW_OSCILLOSCOPE) {
|
||||||
oscOpen=true;
|
oscOpen=true;
|
||||||
|
|
@ -183,7 +191,7 @@ void FurnaceGUI::drawOsc() {
|
||||||
inRect.Max.x-=dpiScale;
|
inRect.Max.x-=dpiScale;
|
||||||
inRect.Max.y-=dpiScale;
|
inRect.Max.y-=dpiScale;
|
||||||
ImGuiStyle& style=ImGui::GetStyle();
|
ImGuiStyle& style=ImGui::GetStyle();
|
||||||
ImU32 color=ImGui::GetColorU32(isClipping?uiColors[GUI_COLOR_OSC_WAVE_PEAK]:uiColors[GUI_COLOR_OSC_WAVE]);
|
//ImU32 color=ImGui::GetColorU32(isClipping?uiColors[GUI_COLOR_OSC_WAVE_PEAK]:uiColors[GUI_COLOR_OSC_WAVE]);
|
||||||
ImU32 borderColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_BORDER]);
|
ImU32 borderColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_BORDER]);
|
||||||
ImU32 refColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_REF]);
|
ImU32 refColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_REF]);
|
||||||
ImU32 guideColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_GUIDE]);
|
ImU32 guideColor=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_GUIDE]);
|
||||||
|
|
@ -291,6 +299,7 @@ void FurnaceGUI::drawOsc() {
|
||||||
dl->AddPolyline(waveform,oscWidth-24,color,ImDrawFlags_None,dpiScale);
|
dl->AddPolyline(waveform,oscWidth-24,color,ImDrawFlags_None,dpiScale);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
//dl->AddCallback(_renderOsc,this);
|
||||||
} else {
|
} else {
|
||||||
for (int ch=0; ch<e->getAudioDescGot().outChans; ch++) {
|
for (int ch=0; ch<e->getAudioDescGot().outChans; ch++) {
|
||||||
for (int i=0; i<oscWidth-24; i++) {
|
for (int i=0; i<oscWidth-24; i++) {
|
||||||
|
|
@ -304,7 +313,7 @@ void FurnaceGUI::drawOsc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isClipping) {
|
if (!isClipping) {
|
||||||
color=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_WAVE_CH0+ch]);
|
//color=ImGui::GetColorU32(uiColors[GUI_COLOR_OSC_WAVE_CH0+ch]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue