upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -937,8 +937,7 @@ private:
|
||||
|
||||
FillType type (gradient);
|
||||
|
||||
auto gradientTransform = parseTransform (fillXml->getStringAttribute ("gradientTransform"))
|
||||
.followedBy (transform);
|
||||
auto gradientTransform = parseTransform (fillXml->getStringAttribute ("gradientTransform"));
|
||||
|
||||
if (gradient.isRadial)
|
||||
{
|
||||
@ -1202,12 +1201,18 @@ private:
|
||||
auto* di = new DrawableImage();
|
||||
|
||||
setCommonAttributes (*di, xml);
|
||||
di->setImage (image);
|
||||
|
||||
Rectangle<float> imageBounds ((float) xml->getDoubleAttribute ("x", 0.0), (float) xml->getDoubleAttribute ("y", 0.0),
|
||||
(float) xml->getDoubleAttribute ("width", image.getWidth()), (float) xml->getDoubleAttribute ("height", image.getHeight()));
|
||||
|
||||
di->setImage (image.rescaled ((int) imageBounds.getWidth(), (int) imageBounds.getHeight()));
|
||||
|
||||
di->setTransformToFit (imageBounds, RectanglePlacement (parsePlacementFlags (xml->getStringAttribute ("preserveAspectRatio").trim())));
|
||||
|
||||
if (additionalTransform != nullptr)
|
||||
di->setTransform (transform.followedBy (*additionalTransform));
|
||||
di->setTransform (di->getTransform().followedBy (transform).followedBy (*additionalTransform));
|
||||
else
|
||||
di->setTransform (transform);
|
||||
di->setTransform (di->getTransform().followedBy (transform));
|
||||
|
||||
return di;
|
||||
}
|
||||
|
Reference in New Issue
Block a user