diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-25 08:04:27 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-26 19:06:44 +0200 |
commit | 92b973fadcf63409026237884e81a1e3f3e62660 (patch) | |
tree | 1b5b608801f69ba2568e2ffdb416b319e3c32dd1 /sw | |
parent | rCGContext is not used for iOS (diff) | |
download | core-92b973fadcf63409026237884e81a1e3f3e62660.tar.gz core-92b973fadcf63409026237884e81a1e3f3e62660.zip |
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.cxx | 4 |
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 ); |