From 2191a11022f657eae5fb21f87dd443ea9228920b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 7 Dec 2015 13:45:26 +0000 Subject: last arg of SetOutputSizePixelScaleOffsetAndBuffer no longer used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I65e7e82e46c5751617b00a39df47d864b29b6ce1 Reviewed-on: https://gerrit.libreoffice.org/20441 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- desktop/source/lib/init.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 8dd6290cb22a..8fa8e0eb9d6b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -904,11 +904,9 @@ void doc_paintTile (LibreOfficeKitDocument* pThis, boost::shared_array< sal_uInt8 > aBuffer( pBuffer, NoDelete< sal_uInt8 >() ); - boost::shared_array aAlphaBuffer; - pDevice->SetOutputSizePixelScaleOffsetAndBuffer( Size(nCanvasWidth, nCanvasHeight), Fraction(1.0), Point(), - aBuffer, aAlphaBuffer); + aBuffer); pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight); @@ -1554,7 +1552,7 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/, aDevice->SetBackground(Wallpaper(COL_TRANSPARENT)); aDevice->SetOutputSizePixelScaleOffsetAndBuffer( Size(nFontWidth, nFontHeight), Fraction(1.0), Point(), - aBuffer, nullptr); + aBuffer); aDevice->DrawText(Point(0,0), aFontName); return pBuffer; -- cgit