Skip to content

Commit

Permalink
Warning Fix (#48)
Browse files Browse the repository at this point in the history
Float Double narrow
  • Loading branch information
baconpaul authored Oct 7, 2023
1 parent ef21a07 commit f6850bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sst/jucegui/components/KnobPainter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void knobPainter(juce::Graphics &g, T* that, S *source)
auto cp = region.getCentre().toFloat();
auto rad = std::min(region.getWidth()/2, region.getHeight()/2);

return {cp.getX() + rad * sin(pt), cp.getY() - rad * cos(pt)};
return {(float)(cp.getX() + rad * sin(pt)), (float)(cp.getY() - rad * cos(pt))};
};

auto modPath = [that, knobarea](int r, float v, float m, int direction) -> juce::Path {
Expand Down

0 comments on commit f6850bd

Please sign in to comment.