From 994b8e52fc02c7468a243efd5e3ba7ffcd81e283 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 9 Jan 2020 14:10:00 +0100 Subject: add setting to config_skia.h whether to use 32bpp bitmaps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As said in previous Skia commits about BackendCapabilities::mbSupportsBitmap32 this should be preferrably enabled, but there are still parts of LO code that have a problem with it, so make it easier to enable/disable this. Change-Id: Iae7a8d5fc77a27372c00f6745317d168e8b2a05b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86489 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- vcl/win/app/salinst.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl/win') diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx index 4b97215b6dac..26ce820a1b67 100644 --- a/vcl/win/app/salinst.cxx +++ b/vcl/win/app/salinst.cxx @@ -50,6 +50,7 @@ #include #include #if HAVE_FEATURE_SKIA +#include #include #include #endif @@ -1078,8 +1079,10 @@ std::shared_ptr WinSalInstance::GetBackendCapabilities { auto pBackendCapabilities = SalInstance::GetBackendCapabilities(); #if HAVE_FEATURE_SKIA +#if SKIA_USE_BITMAP32 if( SkiaHelper::isVCLSkiaEnabled()) pBackendCapabilities->mbSupportsBitmap32 = true; +#endif #endif return pBackendCapabilities; } -- cgit