Created
July 29, 2019 12:54
-
-
Save torarnv/46238baca6dde9afe1006bbe1914e632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git c/src/plugins/platforms/cocoa/qcocoawindow.mm i/src/plugins/platforms/cocoa/qcocoawindow.mm | |
index dc7319484e..39209f261e 100644 | |
--- c/src/plugins/platforms/cocoa/qcocoawindow.mm | |
+++ i/src/plugins/platforms/cocoa/qcocoawindow.mm | |
@@ -1625,6 +1625,9 @@ QCocoaNSWindow *QCocoaWindow::createNSWindow(bool shouldBePanel) | |
[nsWindow setDepthLimit:NSWindowDepthTwentyfourBitRGB]; | |
} | |
+ if (format().colorSpace() == QSurfaceFormat::sRGBColorSpace) | |
+ nsWindow.colorSpace = NSColorSpace.sRGBColorSpace; | |
+ | |
return nsWindow; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment