Skip to content

Commit

Permalink
Paint slice points if available (#1161)
Browse files Browse the repository at this point in the history
Addresses #513
  • Loading branch information
baconpaul authored Aug 20, 2024
1 parent 2273203 commit b6f9eac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src-ui/app/edit-screen/components/MappingPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2969,6 +2969,19 @@ void SampleWaveform::paint(juce::Graphics &g)
getHeight());
}
}

if (samp->meta.n_slices > 0)
{
g.setColour(editor->themeColor(theme::ColorMap::grid_primary));
for (int i = 0; i < samp->meta.n_slices; ++i)
{
auto sp = samp->meta.slice_start[i] * fac;
auto ep = samp->meta.slice_end[i] * fac;
g.drawVerticalLine(sp, 0, getHeight());
g.drawVerticalLine(ep, 0, getHeight());
}
}

g.setColour(juce::Colours::white);
g.drawRect(r, 1);
}
Expand Down

0 comments on commit b6f9eac

Please sign in to comment.