1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided some warnings in OSX10.9 SDK

This commit is contained in:
jules 2013-11-19 12:22:38 +00:00
parent 5c98d8f48f
commit f62c9d186d

View file

@ -582,6 +582,11 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra
{
if (state->fontRef != 0 && state->fillType.isColour())
{
#if JUCE_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
if (transform.isOnlyTranslation())
{
CGContextSetTextMatrix (context, state->fontTransform); // have to set this each time, as it's not saved as part of the state
@ -605,6 +610,10 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra
CGContextRestoreGState (context);
}
#if JUCE_CLANG
#pragma clang diagnostic pop
#endif
}
else
{