Skip to content
Snippets Groups Projects
Commit b8411b0f authored by Josh Siegle's avatar Josh Siegle
Browse files

Fixed memory leak. Closes #35

parent a02a7b91
Branches
Tags
No related merge requests found
......@@ -79,7 +79,7 @@ void AudioWindowButton::paintButton (Graphics& g, bool isMouseOver, bool isButto
const bool isLatencyLabelVisible = getParentComponent()->getWidth() >= 450;
auto textToDraw = isLatencyLabelVisible ? textString : textString.fromLastOccurrenceOf (":", false, true);
g.setFont (FONT_LABEL);
//g.setFont (FONT_LABEL);
g.drawSingleLineText (textToDraw, 0, 15);
}
......@@ -251,7 +251,7 @@ void AudioEditor::paint (Graphics& g)
{
const int margin = getWidth() * 0.03;
g.setColour (Colours::lightgrey);
g.setFont (FONT_LABEL);
//g.setFont (FONT_LABEL);
g.drawSingleLineText ("GATE:", volumeSlider->getBounds().getRight() + margin, 20);
}
......
......@@ -248,14 +248,14 @@ void GraphViewer::paint (Graphics& g)
{
g.fillAll (Colours::darkgrey);
g.setFont (FONT_LABEL);
//g.setFont (FONT_LABEL);
g.setColour (Colours::grey);
g.drawFittedText ("open ephys", 40, 40, getWidth()-50, getHeight()-60, Justification::bottomRight, 100);
g.setFont (FONT_VERSION);
//g.setFont (FONT_VERSION);
g.drawFittedText (currentVersionText, 40, 40, getWidth()-50, getHeight()-45, Justification::bottomRight, 100);
// Draw connections
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment