diff options
author | Leo Wang <ilford@gmail.com> | 2020-10-18 14:26:45 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-10-20 11:03:56 +0200 |
commit | c2fa92b09b069cae2693ddb56143984f06cb9dc2 (patch) | |
tree | 0d2a71e82dca0b1d7dd17667079cf134609da3bd /vcl/osx | |
parent | 90098ed2d426e3812940efb84f8495240e6a85b0 (diff) |
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 <tml@collabora.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salframeview.mm | 5 |
1 files changed, 5 insertions, 0 deletions
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<SalFrameWindow *>(pNSWindow); } |