summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-25 08:04:27 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-26 19:06:44 +0200
commit92b973fadcf63409026237884e81a1e3f3e62660 (patch)
tree1b5b608801f69ba2568e2ffdb416b319e3c32dd1 /sw
parent99a6a8d1bddc11097ff1bf386eb31132dbcdf311 (diff)
Use an 8bpp virtual device (instead of a 1bpp one) in sw and sc for iOS
The reason why a 1bpp virtual device is used in these two places in sc and sw is unclear to me. It causes complications on iOS as such a bitmap gets passed to CGBitmapContextCreate() which does not accept 1bpp bitmaps. But let's keep the 1bpp for other platforms. Change-Id: Ia34927cf728d4be05a31e88b7da78200d0b799ba
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docnew.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 7ffacc346c34..c978716d4f1b 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -698,7 +698,11 @@ SwDoc::~SwDoc()
VirtualDevice& SwDoc::CreateVirtualDevice_() const
{
+#ifdef IOS
+ VirtualDevice* pNewVir = new VirtualDevice( 8 );
+#else
VirtualDevice* pNewVir = new VirtualDevice( 1 );
+#endif
pNewVir->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 );