Changeset 5923 for trunk/macosx/TorrentTableView.m
- Timestamp:
- May 23, 2008, 8:18:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentTableView.m
r5920 r5923 702 702 - (void) highlightSelectionInClipRect: (NSRect) clipRect 703 703 { 704 NS Array * colors = [NSColor controlAlternatingRowBackgroundColors];704 NSColor * altColor = [[NSColor controlAlternatingRowBackgroundColors] objectAtIndex: 1]; 705 705 706 706 NSRect visibleRect = clipRect; … … 736 736 } 737 737 738 NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1]; 739 [color set]; 740 NSRectFill([self rectOfRow: i]); 738 if (!start) 739 { 740 [altColor set]; 741 NSRectFill([self rectOfRow: i]); 742 } 741 743 742 744 start = !start; … … 754 756 while (rowRect.origin.y < NSMaxY(visibleRect)) 755 757 { 756 NSColor * color = start ? [colors objectAtIndex: 0] : [colors objectAtIndex: 1]; 757 [color set]; 758 NSRectFill(rowRect); 758 if (!start) 759 { 760 [altColor set]; 761 NSRectFill(rowRect); 762 } 759 763 760 764 start = !start;
Note: See TracChangeset
for help on using the changeset viewer.