Ignore:
Timestamp:
Jul 23, 2006, 7:22:24 PM (16 years ago)
Author:
livings124
Message:

simplify rect width and height measurements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r557 r678  
    190190    float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR;
    191191   
    192     return NSMakeRect(cellRect.origin.x + cellRect.size.width - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
     192    return NSMakeRect(NSMaxX(cellRect) - AREA_CENTER - DISTANCE_FROM_CENTER - BUTTON_WIDTH,
    193193                        cellRect.origin.y + buttonToTop, BUTTON_WIDTH, BUTTON_WIDTH);
    194194}
     
    200200    float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR;
    201201   
    202     return NSMakeRect(cellRect.origin.x + cellRect.size.width - AREA_CENTER + DISTANCE_FROM_CENTER,
     202    return NSMakeRect(NSMaxX(cellRect) - AREA_CENTER + DISTANCE_FROM_CENTER,
    203203                        cellRect.origin.y + buttonToTop, BUTTON_WIDTH, BUTTON_WIDTH);
    204204}
Note: See TracChangeset for help on using the changeset viewer.