diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-12-13 19:50:54 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-13 19:50:54 +0100 |
commit | 6b4cffc4593f8137f1820069296e882df357fb51 (patch) | |
tree | c654e12168c1d532248c742420d9b41e3100c287 | |
parent | ceef0230600b1f7e4697a11e55dbefaeaa8714db (diff) |
build fixcp-5.0-14
Change-Id: I4be6445ff49d04e9e2f4146b4f5536770249fb84
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
1 files 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<unsigned char*>(malloc(4 * nFontWidth * nFontHeight)); memset(pBuffer, 0, nFontWidth * nFontHeight * 4); boost::shared_array<sal_uInt8> aBuffer(pBuffer, NoDelete< sal_uInt8 >()); + boost::shared_array<sal_uInt8> 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; |