macOS: Respect QSurfaceFormat color space when creating NSWindow
Task-number: QTBUG-47660 Change-Id: I90a2956bfaa52c361a3eba32f0ea19c0eca8c277 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
56b1cb0b04
commit
f4647b40ca
@ -1647,6 +1647,9 @@ QCocoaNSWindow *QCocoaWindow::createNSWindow(bool shouldBePanel)
|
|||||||
[nsWindow setDepthLimit:NSWindowDepthTwentyfourBitRGB];
|
[nsWindow setDepthLimit:NSWindowDepthTwentyfourBitRGB];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (format().colorSpace() == QSurfaceFormat::sRGBColorSpace)
|
||||||
|
nsWindow.colorSpace = NSColorSpace.sRGBColorSpace;
|
||||||
|
|
||||||
return nsWindow;
|
return nsWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user