Ignore:
Timestamp:
May 23, 2008, 8:18:14 PM (14 years ago)
Author:
livings124
Message:

don't draw the white rows - this is already performed before hand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r5920 r5923  
    702702- (void) highlightSelectionInClipRect: (NSRect) clipRect
    703703{
    704     NSArray * colors = [NSColor controlAlternatingRowBackgroundColors];
     704    NSColor * altColor = [[NSColor controlAlternatingRowBackgroundColors] objectAtIndex: 1];
    705705   
    706706    NSRect visibleRect = clipRect;
     
    736736            }
    737737           
    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            }
    741743           
    742744            start = !start;
     
    754756    while (rowRect.origin.y < NSMaxY(visibleRect))
    755757    {
    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        }
    759763       
    760764        start = !start;
Note: See TracChangeset for help on using the changeset viewer.