1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Refactored the Line class to be templated (to update old code, just replace "Line" with "Line<float>"). Corrected a mac ppc build problem.

This commit is contained in:
Julian Storer 2010-04-26 15:47:21 +01:00
parent 0d611ec065
commit 082dff25dd
11 changed files with 601 additions and 984 deletions

View file

@ -544,12 +544,12 @@ void Graphics::drawLine (const float startX, const float startY,
fillPath (p);
}
void Graphics::drawLine (const Line& line) const
void Graphics::drawLine (const Line<float>& line) const
{
drawLine (line.getStartX(), line.getStartY(), line.getEndX(), line.getEndY());
}
void Graphics::drawLine (const Line& line, const float lineThickness) const
void Graphics::drawLine (const Line<float>& line, const float lineThickness) const
{
drawLine (line.getStartX(), line.getStartY(), line.getEndX(), line.getEndY(), lineThickness);
}