From 6cd473576bcfd3e6354814fecbf98572c2fa01b1 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 27 Apr 2015 15:33:13 +0100 Subject: [PATCH] Fixed a warning on iOS. --- modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm index ac7f27a04a..9858afd7f3 100644 --- a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm +++ b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm @@ -405,7 +405,9 @@ void CoreGraphicsContext::fillCGRect (const CGRect& cgRect, const bool replaceEx { if (replaceExistingContents) { - #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 + #if JUCE_IOS + CGContextSetBlendMode (context, kCGBlendModeCopy); + #elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 CGContextClearRect (context, cgRect); #else #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5