From 854caac9191b0d6a32fc1d4c9d110f11e7d1a311 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 28 Oct 2019 20:43:46 +0000 Subject: Revert "sc lok: Implement hi-dpi and zoom for spreadsheets." This reverts commit 498dceb43f870bf9e380f1f87e99c6ccadf1963c. Change-Id: Iadb9da47cf8c9a57385530ab888d55169db7639a Reviewed-on: https://gerrit.libreoffice.org/82088 Tested-by: Jenkins Reviewed-by: Michael Meeks --- desktop/source/lib/init.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ef201b32061e..5b5b301cdee9 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2720,15 +2720,9 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis, // would do - because that one is trying to fit the lines between cells to integer multiples of // pixels. comphelper::ScopeGuard dpiScaleGuard([]() { comphelper::LibreOfficeKit::setDPIScale(1.0); }); - double fDPIScaleX = 1.0; - if (doc_getDocumentType(pThis) == LOK_DOCTYPE_SPREADSHEET) - { - fDPIScaleX = (nCanvasWidth * 3840.0) / (256.0 * nTileWidth); - assert(fabs(fDPIScaleX - ((nCanvasHeight * 3840.0) / (256.0 * nTileHeight))) < 0.0001); - comphelper::LibreOfficeKit::setDPIScale(fDPIScaleX); - } #if defined(IOS) + double fDPIScaleX = 1.0; paintTileIOS(pThis, pBuffer, nCanvasWidth, nCanvasHeight, fDPIScaleX, nTilePosX, nTilePosY, nTileWidth, nTileHeight); #else ScopedVclPtrInstance< VirtualDevice > pDevice(DeviceFormat::DEFAULT); -- cgit