Revision: 24186
http://sourceforge.net/p/bibdesk/svn/24186
Author: hofman
Date: 2019-09-03 20:57:56 +0000 (Tue, 03 Sep 2019)
Log Message:
-----------
use integral rects for drag images
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-09-03
14:29:03 UTC (rev 24185)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-09-03
20:57:56 UTC (rev 24186)
@@ -2654,8 +2654,8 @@
NSRect iconRect = [self _rectOfIconInRow:r column:c];
NSRect textRect = [self _rectOfTextForIconRect:iconRect];
- iconRect = NSInsetRect([self centerScanRect:iconRect],
HIGHLIGHT_INSET, HIGHLIGHT_INSET);
- textRect = [self centerScanRect:textRect];
+ iconRect = NSInsetRect(NSIntegralRect(iconRect), HIGHLIGHT_INSET,
HIGHLIGHT_INSET);
+ textRect = NSIntegralRect(textRect);
NSRect imageRect = NSUnionRect(iconRect, textRect);
NSURL *dragURL = [self URLAtIndex:i];
@@ -2757,7 +2757,7 @@
for (r = rMin, c = cMin; r <= rMax && c <= cMax;) {
NSRect iconRect = [self _rectOfIconInRow:r column:c];
NSRect textRect = [self _rectOfTextForIconRect:iconRect];
- iconRect = NSUnionRect(NSInsetRect([self centerScanRect:iconRect],
HIGHLIGHT_INSET, HIGHLIGHT_INSET), [self centerScanRect:textRect]);
+ iconRect = NSUnionRect(NSInsetRect(NSIntegralRect(iconRect),
HIGHLIGHT_INSET, HIGHLIGHT_INSET), NSIntegralRect(textRect));
rect = NSUnionRect(rect, iconRect);
if (r >= rMax && c >= cMax)
break;
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