[Libreoffice-commits] core.git: vcl/osx
Leo Wang (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 20 09:04:35 UTC 2020
vcl/osx/salframeview.mm | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit c2fa92b09b069cae2693ddb56143984f06cb9dc2
Author: Leo Wang <ilford at gmail.com>
AuthorDate: Sun Oct 18 14:26:45 2020 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Oct 20 11:03:56 2020 +0200
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 at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list