From c2fa92b09b069cae2693ddb56143984f06cb9dc2 Mon Sep 17 00:00:00 2001 From: Leo Wang Date: Sun, 18 Oct 2020 14:26:45 +0300 Subject: tdf#137468: Restrict window depth to 24 bit RGB Change-Id: I65c168155092d89d0302043b4052fed2def18c63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104476 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vcl/osx/salframeview.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl') diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index d26617eb3d15..e4bb30413e31 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -203,6 +203,11 @@ static AquaSalFrame* getMouseContainerFrame() // Disable window restoration until we support it directly [pNSWindow setRestorable: NO]; + // tdf#137468: Restrict to 24-bit RGB as that is all that we can + // handle anyway. HDR is far off in the future for LibreOffice. + [pNSWindow setDynamicDepthLimit: NO]; + [pNSWindow setDepthLimit: NSWindowDepthTwentyfourBitRGB]; + return static_cast(pNSWindow); } -- cgit v1.2.3