Changeset 369


Ignore:
Timestamp:
Jun 15, 2006, 4:01:26 PM (16 years ago)
Author:
livings124
Message:

This might fix bar overlapping (but who really cares since it can't be seen on normal builds anyways)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r367 r369  
    3232
    3333- (void) placeBar: (NSImage *) barImage width: (float) width point: (NSPoint) point;
    34 - (void) buildSimpleBar: (int) widthInt point: (NSPoint) point;
     34- (void) buildSimpleBar: (int) width point: (NSPoint) point;
    3535- (void) buildAdvancedBar: (int) width point: (NSPoint) point;
    3636
     
    120120}
    121121
    122 - (void) buildSimpleBar: (int) widthInt point: (NSPoint) point
    123 {
    124     float width = (float)widthInt - 2.0;
     122- (void) buildSimpleBar: (int) width point: (NSPoint) point
     123{
     124    width -= 2.0;
    125125    if ([fTorrent isSeeding])
    126126    {
     
    135135    else
    136136    {
    137         float completedWidth = [fTorrent progress] * width,
     137        int completedWidth = [fTorrent progress] * width,
    138138                remainingWidth = width - completedWidth;
    139139        BOOL isActive = [fTorrent isActive];
Note: See TracChangeset for help on using the changeset viewer.