From 6b4cffc4593f8137f1820069296e882df357fb51 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sun, 13 Dec 2015 19:50:54 +0100 Subject: build fix Change-Id: I4be6445ff49d04e9e2f4146b4f5536770249fb84 --- desktop/source/lib/init.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 48881e191d82..efd5d10f9644 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1573,7 +1573,7 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/, if (!aSearchedFontName.equals(aFontName.toUtf8().getStr())) continue; - VirtualDevice aDevice(nullptr, Size(1, 1), DeviceFormat::DEFAULT); + VirtualDevice aDevice(nullptr, Size(1, 1), 0); ::Rectangle aRect; vcl::Font aFont(rInfo); aFont.SetSize(Size(0, 25)); @@ -1587,11 +1587,12 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/, unsigned char* pBuffer = static_cast(malloc(4 * nFontWidth * nFontHeight)); memset(pBuffer, 0, nFontWidth * nFontHeight * 4); boost::shared_array aBuffer(pBuffer, NoDelete< sal_uInt8 >()); + boost::shared_array aAlphaBuffer; aDevice.SetBackground(Wallpaper(COL_TRANSPARENT)); aDevice.SetOutputSizePixelScaleOffsetAndBuffer( Size(nFontWidth, nFontHeight), Fraction(1.0), Point(), - aBuffer, nullptr); + aBuffer, aAlphaBuffer); aDevice.DrawText(Point(0,0), aFontName); return pBuffer; -- cgit