diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-02 20:38:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-12 12:33:34 +0000 |
commit | 171f6e048c171cbf6a00cdf95a447ce6f074b6a0 (patch) | |
tree | b4b3fccad56c401cb9e7b5ecdb3d8962e02a2ddf /vcl/unx/generic | |
parent | 9d1e4cbf481c643e1674a493e4911e17d12a98f7 (diff) |
make SupportsCairo always return true now
Change-Id: I818c63aadd23256c183b89a69b77ac8cdcc081f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144968
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/gdi/salgdi.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
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 |