diff options
-rw-r--r-- | vcl/inc/unx/salgdi.h | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salgdi.cxx | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index 18c4f774a3df..db6f59f1b867 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -72,8 +72,6 @@ public: X11Common(); - bool SupportsCairo() const; - const SalColormap& GetColormap() const { return *m_pColormap; } const SalDisplay* GetDisplay() const { return GetColormap().GetDisplay(); } const SalVisual& GetVisual() const { return GetColormap().GetVisual(); } diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 3a1f9bca5412..7908d04e2164 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -66,16 +66,6 @@ X11Common::X11Common() , m_pColormap(nullptr) {} -bool X11Common::SupportsCairo() const -{ - static bool bSupportsCairo = [this] { - Display *pDisplay = GetXDisplay(); - int nDummy; - return XQueryExtension(pDisplay, "RENDER", &nDummy, &nDummy, &nDummy); - }(); - return bSupportsCairo; -} - // X11SalGraphics X11SalGraphics::X11SalGraphics(): @@ -236,7 +226,7 @@ void X11SalGraphics::Flush() bool X11SalGraphics::SupportsCairo() const { - return maX11Common.SupportsCairo(); + return true; } cairo::SurfaceSharedPtr X11SalGraphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const |