1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

New method Graphics::fillRectList(), which performs better (and looks better when scaled) than multiple calls to fillRect or drawVerticalLine. Also fixed DPI detection in Windows.

This commit is contained in:
jules 2013-08-30 18:20:51 +01:00
parent 641cb754f0
commit dbf7053861
18 changed files with 357 additions and 143 deletions

View file

@ -351,7 +351,16 @@ void LowLevelGraphicsPostScriptRenderer::fillRect (const Rectangle<int>& r, cons
p.addRectangle (r);
fillPath (p, AffineTransform::identity);
}
}
void LowLevelGraphicsPostScriptRenderer::fillRectList (const RectangleList<float>& list)
{
for (const Rectangle<float>* r = list.begin(), * const e = list.end(); r != e; ++r)
{
Path p;
p.addRectangle (*r);
fillPath (p, AffineTransform::identity);
}
}
//==============================================================================