summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-25 14:30:28 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-25 14:33:26 +0100
commite5fb98294aed7c88873eb8aa50cb6aca994e024b (patch)
tree85d6fb190ed7fec81d8f6570319033056c8aba08
parent6403f2b59b4c83e0899012e5ca0ddd705784350c (diff)
LOK: Tiled Rendering only useable on Linux.
Change-Id: I90daddddb08c26c594109ecf926cb4ea64308770
-rw-r--r--desktop/source/lib/init.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 7e112f4ea061..df54617f64ca 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -448,6 +448,7 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
Application::AcquireSolarMutex(1);
{
+#if defined(UNX) && !defined(MACOSX)
ImplSVData* pSVData = ImplGetSVData();
SvpSalInstance* pSalInstance = static_cast< SvpSalInstance* >(pSVData->mpDefInst);
pSalInstance->setBitCountFormatMapping( 32, ::basebmp::FORMAT_THIRTYTWO_BIT_TC_MASK_RGBA );
@@ -465,6 +466,16 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
basebmp::BitmapDeviceSharedPtr pBmpDev = pSalDev->getBitmapDevice();
*pRowStride = pBmpDev->getScanlineStride();
+#else
+ (void) pBuffer;
+ (void) nCanvasWidth;
+ (void) nCanvasHeight;
+ (void) pRowStride;
+ (void) nTilePosX;
+ (void) nTilePosY;
+ (void) nTileWidth;
+ (void) nTileHeight;
+#endif
}
Application::ReleaseSolarMutex();
}