diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-25 09:14:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-25 09:16:14 +0100 |
commit | 5ce9954c5ec244b9a858ab7e996d5201a21dc3fe (patch) | |
tree | 27d45ca79ff5aa4d636047a5b49b4315c5200091 /vcl/headless/svpgdi.cxx | |
parent | 7c815d304a151895298506b763989c2c0954a961 (diff) |
cairo_format_stride_for_width is 1.6 onwards
Change-Id: Ic233b4b6c7067f2473eb76b0c7e520cfe1dfcd14
Diffstat (limited to 'vcl/headless/svpgdi.cxx')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 3b8413c011b2..bdc20bb2f311 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -744,6 +744,7 @@ bool SvpSalGraphics::supportsOperation( OutDevSupportType ) const cairo_t* SvpSalGraphics::createCairoContext(const basebmp::BitmapDeviceSharedPtr &rBuffer) { +#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0) if (rBuffer->getScanlineFormat() != basebmp::Format::ThirtyTwoBitTcMaskBGRX) return NULL; @@ -761,6 +762,9 @@ cairo_t* SvpSalGraphics::createCairoContext(const basebmp::BitmapDeviceSharedPtr cairo_t* cr = cairo_create(target); cairo_surface_destroy(target); return cr; +#else + return NULL; +#endif } bool SvpSalGraphics::SupportsCairo() const |