Revision: 13374
          http://sourceforge.net/p/skim-app/code/13374
Author:   hofman
Date:     2023-03-15 23:50:35 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
color space is not retained

Modified Paths:
--------------
    trunk/SKMainWindowController_FullScreen.m

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2023-03-15 23:20:37 UTC (rev 
13373)
+++ trunk/SKMainWindowController_FullScreen.m   2023-03-15 23:50:35 UTC (rev 
13374)
@@ -566,11 +566,9 @@
                 break;
         if (tbWindow) {
             CGImageRef tbCgImage = CGWindowListCreateImage(CGRectNull, 
kCGWindowListOptionIncludingWindow, (CGWindowID)[tbWindow windowNumber], 
kCGWindowImageBoundsIgnoreFraming);
-            CGColorSpaceRef cs = CGImageGetColorSpace(cgImage);
             size_t width = CGImageGetWidth(cgImage), height = 
CGImageGetHeight(cgImage);
             size_t tbWidth = CGImageGetWidth(tbCgImage), tbHeight = 
CGImageGetHeight(tbCgImage);
-            CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8, 4 
* width, cs, kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedFirst);
-            CGColorSpaceRelease(cs);
+            CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8, 4 
* width, CGImageGetColorSpace(cgImage), kCGBitmapByteOrder32Host | 
kCGImageAlphaPremultipliedFirst);
             CGContextDrawImage(ctx, CGRectMake(0.0, 0.0, width, height), 
cgImage);
             CGContextDrawImage(ctx, CGRectMake(0.0, height - tbHeight, 
tbWidth, tbHeight), tbCgImage);
             CGImageRelease(tbCgImage);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to