Revision: 27338
          http://sourceforge.net/p/bibdesk/svn/27338
Author:   hofman
Date:     2022-03-31 21:32:33 +0000 (Thu, 31 Mar 2022)
Log Message:
-----------
No rounded corners for file header image on older systems

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

Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m   2022-03-30 06:30:34 UTC (rev 27337)
+++ trunk/bibdesk/BDSKMainTableView.m   2022-03-31 21:32:33 UTC (rev 27338)
@@ -466,14 +466,14 @@
         
         path = [NSBezierPath bezierPath];
         [path moveToPoint:NSMakePoint(2.5, 2.5)];
-        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, 1.5) 
toPoint:NSMakePoint(width - 2.5, 1.5) radius:1.0];
-        [path appendBezierPathWithArcFromPoint:NSMakePoint(width - 2.5, 1.5) 
toPoint:NSMakePoint(width - 2.5, 2.0 * x + 0.5) radius:1.0];
+        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, 1.5) 
toPoint:NSMakePoint(width - 2.5, 1.5) radius:x - 4.0];
+        [path appendBezierPathWithArcFromPoint:NSMakePoint(width - 2.5, 1.5) 
toPoint:NSMakePoint(width - 2.5, 2.0 * x + 0.5) radius:x - 4.0];
         [path lineToPoint:NSMakePoint(width - 2.5, 2.0 * x + 1.0)];
         [path lineToPoint:NSMakePoint(2.0 * x, width - 1.5)];
-        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, width - 1.5) 
toPoint:NSMakePoint(2.5, 1.5) radius:1.0];
+        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, width - 1.5) 
toPoint:NSMakePoint(2.5, 1.5) radius:x - 4.0];
         [path closePath];
         [path moveToPoint:NSMakePoint(width - 2.5, 2.0 * x + 0.5)];
-        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.0 * x - 0.5, 2.0 
* x + 0.5) toPoint:NSMakePoint(2.0 * x - 0.5, width - 1.5) radius:1.0];
+        [path appendBezierPathWithArcFromPoint:NSMakePoint(2.0 * x - 0.5, 2.0 
* x + 0.5) toPoint:NSMakePoint(2.0 * x - 0.5, width - 1.5) radius:x - 4.0];
         [path lineToPoint:NSMakePoint(2.0 * x - 0.5, width - 1.5)];
         NSImage *file = [[[NSImage alloc] initBitmapWithSize:size 
drawingHandler:^(NSRect rect){
             [path stroke];

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