Skip to content

Commit

Permalink
CoreGraphics: Fix issue where AlertWindow borders were not rendered c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
reuk committed May 31, 2023
1 parent fa6f5a8 commit 3894fdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm
Expand Up @@ -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
Expand Down

0 comments on commit 3894fdb

Please sign in to comment.