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

Improved software glyph rendering. Misc fixes.

This commit is contained in:
Julian Storer 2010-05-15 22:30:43 +01:00
parent 3847842ae8
commit 3f68ec0b84
10 changed files with 85 additions and 39 deletions

View file

@ -1198,7 +1198,12 @@ public:
const Ptr clipToRectangleList (const RectangleList& r)
{
edgeTable.clipToEdgeTable (EdgeTable (r));
RectangleList inverse (edgeTable.getMaximumBounds());
if (inverse.subtract (r))
for (RectangleList::Iterator iter (inverse); iter.next();)
edgeTable.excludeRectangle (*iter.getRectangle());
return edgeTable.isEmpty() ? 0 : this;
}