Was broken in this commit: macOS: Improve performance for some graphics draw functions · juce-framework/JUCE@997c927 · GitHub
Code to reproduce:
juce::ColourGradient grad (juce::Colours::red, 0, 0, juce::Colours::green, 0, getHeight(), false);
g.setGradientFill (grad);
g.drawRoundedRectangle (getLocalBounds().reduced (50).toFloat(), 2.0f, 5.0f);
#include "MainComponent.h"
//==============================================================================
MainComponent::MainComponent()
{
setSize (600, 400);
}
MainComponent::~MainComponent()
{
}
//==============================================================================
void MainComponent::paint (juce::Graphics& g)
{
// (Our component is opaque, so we must completely fill the background with a solid colour)
g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
g.setFont (juce::FontOptions (16.0f));
This file has been truncated. show original
Thanks that should be a quick and easy fix, I’ll get something up ASAP although it’s a bank holiday weekend in the UK so you may not see it on develop for a few days now.
@RolandMR this is fixed on develop, thanks for reporting.
committed 10:53AM - 28 Aug 24 UTC
1 Like