Revision: 27242
          http://sourceforge.net/p/bibdesk/svn/27242
Author:   hofman
Date:     2022-02-06 00:20:38 +0000 (Sun, 06 Feb 2022)
Log Message:
-----------
Include alpha components for color matrix

Modified Paths:
--------------
    trunk/bibdesk/BDSKZoomablePDFView.m

Modified: trunk/bibdesk/BDSKZoomablePDFView.m
===================================================================
--- trunk/bibdesk/BDSKZoomablePDFView.m 2022-01-19 10:51:57 UTC (rev 27241)
+++ trunk/bibdesk/BDSKZoomablePDFView.m 2022-02-06 00:20:38 UTC (rev 27242)
@@ -210,8 +210,8 @@
 
 - (void)updateColorFilters {
     if (BDSKHasDarkAppearance(NSApp)) {
-        [[self scrollView] setContentFilters:[NSArray arrayWithObjects: 
[CIFilter filterWithName:@"CIColorMatrix" keysAndValues:@"inputRVector", 
[CIVector vectorWithX:1.0-LR Y:-LG Z:-LB], @"inputGVector", [CIVector 
vectorWithX:-LR Y:1.0-LG Z:-LB], @"inputBVector", [CIVector vectorWithX:-LR 
Y:-LG Z:1.0-LB], @"inputBiasVector", [CIVector vectorWithX:1.0 Y:1.0 Z:1.0], 
nil], nil]];
-        [backgroundView setContentFilters:[NSArray arrayWithObjects: [CIFilter 
filterWithName:@"CIColorMatrix" keysAndValues:@"inputRVector", [CIVector 
vectorWithX:1.0-LR Y:-LG Z:-LB], @"inputGVector", [CIVector vectorWithX:-LR 
Y:1.0-LG Z:-LB], @"inputBVector", [CIVector vectorWithX:-LR Y:-LG Z:1.0-LB], 
@"inputBiasVector", [CIVector vectorWithX:1.0 Y:1.0 Z:1.0], nil], nil]];
+        [[self scrollView] setContentFilters:[NSArray arrayWithObjects: 
[CIFilter filterWithName:@"CIColorMatrix" keysAndValues:@"inputRVector", 
[CIVector vectorWithX:1.0-LR Y:-LG Z:-LB W:0.0], @"inputGVector", [CIVector 
vectorWithX:-LR Y:1.0-LG Z:-LB W:0.0], @"inputBVector", [CIVector 
vectorWithX:-LR Y:-LG Z:1.0-LB W:0.0], @"inputBiasVector", [CIVector 
vectorWithX:1.0 Y:1.0 Z:1.0 W:0.0], nil], nil]];
+        [backgroundView setContentFilters:[NSArray arrayWithObjects: [CIFilter 
filterWithName:@"CIColorMatrix" keysAndValues:@"inputRVector", [CIVector 
vectorWithX:1.0-LR Y:-LG Z:-LB W:0.0], @"inputGVector", [CIVector 
vectorWithX:-LR Y:1.0-LG Z:-LB W:0.0], @"inputBVector", [CIVector 
vectorWithX:-LR Y:-LG Z:1.0-LB W:0.0], @"inputAVector", [CIVector 
vectorWithX:0.0 Y:0.0 Z:0.0 W:1.0], @"inputBiasVector", [CIVector 
vectorWithX:1.0 Y:1.0 Z:1.0 W:0.0], nil], nil]];
     } else {
         [[self scrollView] setContentFilters:[NSArray array]];
         [backgroundView setContentFilters:[NSArray array]];

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to