summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-25 09:14:22 +0100
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-07 22:44:40 -0500
commit6dc6c9eb71a4e59759f9a290d8c20334eba251bb (patch)
tree0da26abed422f189e220798dc91c336076861e8d /vcl
parenta93b90f77154c6868b5dbd5c58433b09e9c94f1b (diff)
cairo_format_stride_for_width is 1.6 onwards
(cherry picked from commit 5ce9954c5ec244b9a858ab7e996d5201a21dc3fe) Change-Id: Ic233b4b6c7067f2473eb76b0c7e520cfe1dfcd14
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 50dd70723f55..78372e8a3c88 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1076,6 +1076,7 @@ bool SvpSalGraphics::drawEPS( long, long, long, long, void*, sal_uLong )
cairo_t* SvpSalGraphics::createCairoContext(const basebmp::BitmapDeviceSharedPtr &rBuffer)
{
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
if (!isCairoCompatible(rBuffer))
return NULL;
@@ -1091,6 +1092,9 @@ cairo_t* SvpSalGraphics::createCairoContext(const basebmp::BitmapDeviceSharedPtr
cairo_t* cr = cairo_create(target);
cairo_surface_destroy(target);
return cr;
+#else
+ return NULL;
+#endif
}
#endif