Changeset 2701


Ignore:
Timestamp:
Aug 10, 2007, 4:06:49 AM (15 years ago)
Author:
livings124
Message:

on mouse up/down only redisplay the affected row

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.h

    r2699 r2701  
    2323 *****************************************************************************/
    2424
    25 #ifndef TORRENTCELL_H
    26 #define TORRENTCELL_H
    27 
    28 #import "Torrent.h"
    2925#import "CTGradient.h"
    3026
     
    4541
    4642@end
    47 
    48 #endif
  • trunk/macosx/TorrentTableView.m

    r2698 r2701  
    117117    if ([self pointInActionRect: fClickPoint])
    118118    {
    119         [self display]; //ensure button is pushed down
     119        [self setNeedsDisplayInRect: [self rectOfRow: [self rowAtPoint: fClickPoint]]]; //ensure button is pushed down
    120120        [self displayTorrentMenuForEvent: event];
    121121        fClickPoint = NSZeroPoint;
     
    147147{
    148148    NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
    149     int row = [self rowAtPoint: point];
    150     BOOL sameRow = row == [self rowAtPoint: fClickPoint];
     149    int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint];
     150    BOOL sameRow = row == oldRow;
    151151   
    152152    if (sameRow && [self pointInPauseRect: point] && [self pointInPauseRect: fClickPoint])
     
    181181
    182182    fClickPoint = NSZeroPoint;
    183     [self display];
     183    [self setNeedsDisplayInRect: [self rectOfRow: oldRow]];
    184184}
    185185
Note: See TracChangeset for help on using the changeset viewer.