mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Some misc cleanups, mainly around WeakReference usage and rectangles
This commit is contained in:
parent
47535718dc
commit
7ab4d1708b
28 changed files with 136 additions and 135 deletions
|
|
@ -351,8 +351,8 @@ void LowLevelGraphicsPostScriptRenderer::fillRect (const Rectangle<float>& r)
|
|||
writeClip();
|
||||
writeColour (stateStack.getLast()->fillType.colour);
|
||||
|
||||
Rectangle<float> r2 (r.translated ((float) stateStack.getLast()->xOffset,
|
||||
(float) stateStack.getLast()->yOffset));
|
||||
auto r2 = r.translated ((float) stateStack.getLast()->xOffset,
|
||||
(float) stateStack.getLast()->yOffset);
|
||||
|
||||
out << r2.getX() << ' ' << -r2.getBottom() << ' ' << r2.getWidth() << ' ' << r2.getHeight() << " rectfill\n";
|
||||
}
|
||||
|
|
@ -401,7 +401,7 @@ void LowLevelGraphicsPostScriptRenderer::fillPath (const Path& path, const Affin
|
|||
out << "clip\n";
|
||||
}
|
||||
|
||||
const Rectangle<int> bounds (stateStack.getLast()->clip.getBounds());
|
||||
auto bounds = stateStack.getLast()->clip.getBounds();
|
||||
|
||||
// ideally this would draw lots of lines or ellipses to approximate the gradient, but for the
|
||||
// time-being, this just fills it with the average colour..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue