Increase spec process enabled button size. Init spread spec process to disabled. Remove checks for spec process enabled states from processBlock

This commit is contained in:
xenakios
2018-01-30 17:54:06 +02:00
parent 84164da2d7
commit ced5a5e22a
3 changed files with 11 additions and 10 deletions

View File

@ -722,7 +722,7 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev)
m_cur_index = ev.x / box_w;
if (m_cur_index >= 0)
{
juce::Rectangle<int> r(box_w*m_cur_index, 1, 10, 10);
juce::Rectangle<int> r(box_w*m_cur_index, 1, 12, 12);
if (r.contains(ev.x, ev.y))
{
m_order[m_cur_index].m_enabled = !m_order[m_cur_index].m_enabled;
@ -790,11 +790,11 @@ void SpectralChainEditor::drawBox(Graphics & g, int index, int x, int y, int w,
g.drawRect(x, y, w, h);
g.drawFittedText(txt, x,y,w,h, Justification::centred, 3);
g.setColour(Colours::gold);
g.drawRect(x + 2, y + 2, 10, 10);
g.drawRect(x + 2, y + 2, 12, 12);
if (m_order[index].m_enabled == true)
{
g.drawLine(x+2, y+2, x+12, y+12);
g.drawLine(x+2, y+12, x+12, y+2);
g.drawLine(x+2, y+2, x+14, y+14);
g.drawLine(x+2, y+14, x+14, y+2);
}
g.setColour(Colours::white);
}