summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-12-13 19:50:54 +0100
committerAndras Timar <andras.timar@collabora.com>2015-12-13 19:50:54 +0100
commit6b4cffc4593f8137f1820069296e882df357fb51 (patch)
treec654e12168c1d532248c742420d9b41e3100c287
parentceef0230600b1f7e4697a11e55dbefaeaa8714db (diff)
build fixcp-5.0-14
Change-Id: I4be6445ff49d04e9e2f4146b4f5536770249fb84
-rw-r--r--desktop/source/lib/init.cxx5
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;