summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-07-16 10:38:18 +0300
committerTor Lillqvist <tml@collabora.com>2020-07-16 13:14:53 +0200
commit837879ec7b1f3cdfee2b7af4ec44885db0d115e6 (patch)
tree5f05f636537871aacba152f0fec9c372e3620800 /vcl
parentc60ce3d48dbccd616cfa989ca3d8f1ded4ccd411 (diff)
tdf#134832: Don't set mbSupportsBitmap32 on iOS
Our Quartz code sure doesn't handle such bitmaps, as far as I know. (Yeah, iOS itself of course handles such bitmaps with included alpha (both the venerable Core Graphics stuff, not to mention all kinds of more modern things), but not our code.) This does not fix the bug in question, but clearly setting mbSupportsBitmap32 for iOS was unintentional. (It is possible that it would be relatively easy to just fix our Quartz code to actually handle such bitmaps. Then mbSupportsBitmap32 could be turned on again. Later.) Change-Id: I278a4c1ad1c3e882a769d9d054f3f19e1a976666 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98881 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98884 Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpinst.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index daaa4d170b3e..055b7cad9dfc 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -571,7 +571,9 @@ void SvpSalInstance::AddToRecentDocumentList(const OUString&, const OUString&, c
std::shared_ptr<vcl::BackendCapabilities> SvpSalInstance::GetBackendCapabilities()
{
auto pBackendCapabilities = SalInstance::GetBackendCapabilities();
+#ifndef IOS
pBackendCapabilities->mbSupportsBitmap32 = true;
+#endif
return pBackendCapabilities;
}