diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-10-07 21:25:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-10-07 21:34:06 +0300 |
commit | 3c9da1fbfae9c00a5eb9ddcb106a01b075703fcd (patch) | |
tree | 81ba3f0048adf8527218977618dd7773b22a6a54 /desktop | |
parent | 5e1bf627b4751b6bc319bdad3166bc7bc1b3ae88 (diff) |
Make this compile for iOS again
Change-Id: I36f88d7e1114096d1e7a7a1d29077c387c21a10a
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 03fc12f3d521..5883857d1a8f 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -775,15 +775,6 @@ void doc_paintTile (LibreOfficeKitDocument* pThis, pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight); -#else - SystemGraphicsData aData; - aData.rCGContext = reinterpret_cast<CGContextRef>(pBuffer); - // the Size argument is irrelevant, I hope - ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), (sal_uInt16)0); - - pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, - nTilePosX, nTilePosY, nTileWidth, nTileHeight); -#endif // Overwrite pBuffer's alpha channel with the separate alpha buffer. for (int nRow = 0; nRow < nCanvasHeight; ++nRow) @@ -796,6 +787,16 @@ void doc_paintTile (LibreOfficeKitDocument* pThis, } } +#else + SystemGraphicsData aData; + aData.rCGContext = reinterpret_cast<CGContextRef>(pBuffer); + // the Size argument is irrelevant, I hope + ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), (sal_uInt16)0); + + pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, + nTilePosX, nTilePosY, nTileWidth, nTileHeight); +#endif + static bool bDebug = getenv("LOK_DEBUG") != 0; if (bDebug) { |