diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/salgdi2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/coretext/salgdi2.cxx b/vcl/coretext/salgdi2.cxx index c0ae17a6a792..a78c8a37d547 100644 --- a/vcl/coretext/salgdi2.cxx +++ b/vcl/coretext/salgdi2.cxx @@ -828,6 +828,7 @@ bool SvpSalGraphics::CheckContext() const basegfx::B2IVector bufferSize = m_aDevice->getBufferSize(); const sal_Int32 scanlineStride = m_aDevice->getScanlineStride(); basebmp::RawMemorySharedArray pixelBuffer = m_aDevice->getBuffer(); + bool warned = false; SAL_INFO( "vcl.ios", "CheckContext: device=" << m_aDevice.get() << @@ -852,10 +853,11 @@ bool SvpSalGraphics::CheckContext() kCGImageAlphaNoneSkipLast); break; default: - SAL_INFO( "vcl.ios", "CheckContext: unsupported color format " << basebmp::formatName( m_aDevice->getScanlineFormat() ) ); + SAL_WARN( "vcl.ios", "CheckContext: unsupported color format " << basebmp::formatName( m_aDevice->getScanlineFormat() ) ); + warned = true; } - SAL_WARN_IF( mrContext == NULL, "vcl.ios", "CheckContext() failed" ); + SAL_WARN_IF( mrContext == NULL && !warned, "vcl.ios", "CheckContext: CGBitmapContextCreate() failed" ); // Should we also clip the context? (Then we need to add a // getBounds() function to BitmapDevice.) |