diff --git a/modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm b/modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm index fb67176cf233..bd0a6f50f78e 100644 --- a/modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm +++ b/modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm @@ -500,7 +500,10 @@ static CGBitmapInfo getCGImageFlags (const Image::PixelFormat& format) setContextClipToPath (path, transform); if (state->fillType.isColour()) - CGContextFillRect (context.get(), CGContextGetClipBoundingBox (context.get())); + { + createPath (path, transform); + CGContextFillPath (context.get()); + } else if (state->fillType.isGradient()) drawGradient(); else