summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salgdiutils.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/vcl/osx/salgdiutils.cxx b/vcl/osx/salgdiutils.cxx
index d7f8ec48eaf0..7e2cf029b71f 100644
--- a/vcl/osx/salgdiutils.cxx
+++ b/vcl/osx/salgdiutils.cxx
@@ -381,17 +381,12 @@ void AquaSalGraphics::UpdateWindow( NSRect& rRect )
CGContextSetBlendMode(rCGContextHolder.get(), kCGBlendModeCopy);
- NSWindow *pWindow = maShared.mpFrame->getNSWindow();
- if (pWindow)
- {
- CGImageRef displayColorSpaceImage = CGImageCreateCopyWithColorSpace(img, [[maShared.mpFrame->getNSWindow() colorSpace] CGColorSpace]);
- CGContextDrawImage(rCGContextHolder.get(), aRect, displayColorSpaceImage);
- CGImageRelease(displayColorSpaceImage);
- }
- else
- {
- CGContextDrawImage(rCGContextHolder.get(), aRect, img);
- }
+ // tdf#163152 don't convert image's sRGB colorspace
+ // Converting the image's colorspace to match the window's
+ // colorspace causes more than an expected amount of color
+ // saturation so let the window's underlying CGContext handle
+ // any necessary colorspace conversion in CGContextDrawImage().
+ CGContextDrawImage(rCGContextHolder.get(), aRect, img);
rCGContextHolder.restoreState();