summaryrefslogtreecommitdiff
path: root/vcl/coretext
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-31 23:37:36 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:51:59 +0100
commite8c7e2b06188cb59261b1bff46b91a88784fa176 (patch)
tree6b6680a692974a207e462457dcd92fe6c453ca00 /vcl/coretext
parent5440d47c9cc0ee41ac039809126a6cf215d7ca73 (diff)
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
Diffstat (limited to 'vcl/coretext')
-rw-r--r--vcl/coretext/salgdi2.cxx7
1 files changed, 7 insertions, 0 deletions
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;