mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Added a templated type to the RectangleList class. If you've used this class and these changes cause syntax errors, all you need to do to your code is to replace "RectangleList" with "RectangleList<int>" and everything will work as it did before.
This commit is contained in:
parent
3330b9b587
commit
1b9a60e52c
72 changed files with 584 additions and 835 deletions
|
|
@ -117,7 +117,7 @@ bool LowLevelGraphicsPostScriptRenderer::clipToRectangle (const Rectangle<int>&
|
|||
return stateStack.getLast()->clip.clipTo (r.translated (stateStack.getLast()->xOffset, stateStack.getLast()->yOffset));
|
||||
}
|
||||
|
||||
bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList (const RectangleList& clipRegion)
|
||||
bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList (const RectangleList<int>& clipRegion)
|
||||
{
|
||||
needToClip = true;
|
||||
return stateStack.getLast()->clip.clipTo (clipRegion);
|
||||
|
|
@ -470,7 +470,7 @@ void LowLevelGraphicsPostScriptRenderer::drawImage (const Image& sourceImage, co
|
|||
writeTransform (transform.translated ((float) stateStack.getLast()->xOffset, (float) stateStack.getLast()->yOffset)
|
||||
.scaled (1.0f, -1.0f));
|
||||
|
||||
RectangleList imageClip;
|
||||
RectangleList<int> imageClip;
|
||||
sourceImage.createSolidAreaMask (imageClip, 0.5f);
|
||||
|
||||
out << "newpath ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue