[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/headless

Caolán McNamara caolanm at redhat.com
Thu Jul 16 06:11:03 PDT 2015


 vcl/headless/svpgdi.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 31b9e0386dfc17d659fc19f7b94fd53fcdae1ab5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 16 12:22:24 2015 +0100

    need cairo >= 1.10.0 for these features
    
    Change-Id: I8e1e45caadc6cc537f27a194851dd00b1f1d0e89
    (cherry picked from commit d1419cf8ff4e9f502443012a4e8c31fa25532032)

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index be86a63..ed2fe18 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -108,7 +108,7 @@ namespace
         if (rBuffer->getScanlineFormat() != basebmp::FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX)
             return false;
 
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
         basegfx::B2IVector size = rBuffer->getSize();
         sal_Int32 nStride = rBuffer->getScanlineStride();
         return (cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, size.getX()) == nStride);
@@ -142,7 +142,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight,
     bool bRet = false;
     (void)nX; (void)nY; (void)nWidth; (void)nHeight; (void)nTransparency;
 #if ENABLE_CAIRO_CANVAS
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
     if (m_bUseLineColor || !m_bUseFillColor)
         return bRet;
 


More information about the Libreoffice-commits mailing list