summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-18 09:46:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-18 12:32:30 +0000
commit34dc97c79165a038fd1262902a414fe78882aaba (patch)
treedb27e5b67c2c82881aa3802130949eaed8224cdc /vcl/unx
parent69d0d5f567f1418060f0c925b0dada2cb608eacc (diff)
move IsCairoWorking to vclplug level and rename
Change-Id: Id31de932afa61df6933d61ddba971f5d7060f0c1
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 375a9dd1966a..2a76110fe4fa 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -455,6 +455,13 @@ SystemGraphicsData X11SalGraphics::GetGraphicsData() const
return aRes;
}
+bool X11SalGraphics::SupportsCairo() const
+{
+ Display *pDisplay = GetXDisplay();
+ int nDummy;
+ return XQueryExtension(pDisplay, "RENDER", &nDummy, &nDummy, &nDummy);
+}
+
// draw a poly-polygon
bool X11SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rOrigPolyPoly, double fTransparency )
{