From 171f6e048c171cbf6a00cdf95a447ce6f074b6a0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 2 Jan 2023 20:38:35 +0000 Subject: make SupportsCairo always return true now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I818c63aadd23256c183b89a69b77ac8cdcc081f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144968 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/generic/gdi/salgdi.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'vcl/unx/generic') 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 -- cgit