f325b2
From 2c2bc72ba3c8f2ac31e4d02a095342a3dca9d349 Mon Sep 17 00:00:00 2001
f325b2
From: Tor Lillqvist <tml@collabora.com>
f325b2
Date: Wed, 7 Oct 2015 21:25:50 +0300
f325b2
Subject: [PATCH 190/398] Make this compile for iOS again
f325b2
f325b2
Change-Id: I36f88d7e1114096d1e7a7a1d29077c387c21a10a
f325b2
(cherry picked from commit 3c9da1fbfae9c00a5eb9ddcb106a01b075703fcd)
f325b2
---
f325b2
 desktop/source/lib/init.cxx | 19 ++++++++++---------
f325b2
 1 file changed, 10 insertions(+), 9 deletions(-)
f325b2
f325b2
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
f325b2
index 29e8e0d12faa..836fc00e1042 100644
f325b2
--- a/desktop/source/lib/init.cxx
f325b2
+++ b/desktop/source/lib/init.cxx
f325b2
@@ -774,15 +774,6 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
f325b2
 
f325b2
     pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
f325b2
                     nTilePosX, nTilePosY, nTileWidth, nTileHeight);
f325b2
-#else
f325b2
-    SystemGraphicsData aData;
f325b2
-    aData.rCGContext = reinterpret_cast<CGContextRef>(pBuffer);
f325b2
-    // the Size argument is irrelevant, I hope
f325b2
-    ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), (sal_uInt16)0);
f325b2
-
f325b2
-    pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
f325b2
-                    nTilePosX, nTilePosY, nTileWidth, nTileHeight);
f325b2
-#endif
f325b2
 
f325b2
     // Overwrite pBuffer's alpha channel with the separate alpha buffer.
f325b2
     for (int nRow = 0; nRow < nCanvasHeight; ++nRow)
f325b2
@@ -795,6 +786,16 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
f325b2
         }
f325b2
     }
f325b2
 
f325b2
+#else
f325b2
+    SystemGraphicsData aData;
f325b2
+    aData.rCGContext = reinterpret_cast<CGContextRef>(pBuffer);
f325b2
+    // the Size argument is irrelevant, I hope
f325b2
+    ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), (sal_uInt16)0);
f325b2
+
f325b2
+    pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
f325b2
+                    nTilePosX, nTilePosY, nTileWidth, nTileHeight);
f325b2
+#endif
f325b2
+
f325b2
     static bool bDebug = getenv("LOK_DEBUG") != 0;
f325b2
     if (bDebug)
f325b2
     {
f325b2
-- 
f325b2
2.12.0
f325b2