From e8c7e2b06188cb59261b1bff46b91a88784fa176 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 31 Oct 2013 23:37:36 +0200 Subject: Handle also FORMAT_THIRTYTWO_BIT_TC_MASK_BGRA It seems to be used to draw something related to rulers, which we of course don't show at all, but apparently they get initialised anyway. So, to avoid a warning, handle this format, too. (As such, I am not sure if I handle BGRA the right way, but there is no way to check as nothing works properly in this branch at the moment anyway.) Change-Id: I6a7444872f90a34e1e568769a595443c45aa6722 --- vcl/coretext/salgdi2.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vcl/coretext') diff --git a/vcl/coretext/salgdi2.cxx b/vcl/coretext/salgdi2.cxx index a78c8a37d547..594670c03187 100644 --- a/vcl/coretext/salgdi2.cxx +++ b/vcl/coretext/salgdi2.cxx @@ -852,6 +852,13 @@ bool SvpSalGraphics::CheckContext() CGColorSpaceCreateDeviceRGB(), kCGImageAlphaNoneSkipLast); break; + case basebmp::FORMAT_THIRTYTWO_BIT_TC_MASK_BGRA: + mrContext = CGBitmapContextCreate(pixelBuffer.get(), + bufferSize.getX(), bufferSize.getY(), + 8, scanlineStride, + CGColorSpaceCreateDeviceRGB(), + kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Little); + break; default: SAL_WARN( "vcl.ios", "CheckContext: unsupported color format " << basebmp::formatName( m_aDevice->getScanlineFormat() ) ); warned = true; -- cgit