Ignore:
Timestamp:
Mar 12, 2006, 3:28:31 PM (16 years ago)
Author:
titer
Message:

Started to restore the start/resume/reveal buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_api/macosx/TorrentCell.m

    r148 r150  
    125125
    126126    p   = (uint32_t *) [fBitmap bitmapData] + 1;
    127     end = lrintf( floor( [fTorrent progress] * fWidth ) );
     127    end = lrintf( floor( [fTorrent progress] * ( fWidth - 2 ) ) );
    128128
    129129    if( [fTorrent isSeeding] )
     
    229229- (void) buildBar
    230230{
    231     int h, w;
     231    int h;
    232232    uint32_t * p;
    233233
    234     /* Background */
     234    /* Left and right borders */
    235235    p = (uint32_t *) [fBitmap bitmapData];
    236236    for( h = 0; h < BAR_HEIGHT; h++ )
    237237    {
    238238        p[0] = kBorder[h];
    239         for( w = 1; w < fWidth - 1; w++ )
    240         {
    241             p[w] = kBack[h];
    242         }
    243239        p[fWidth - 1] = kBorder[h];
    244240        p += [fBitmap bytesPerRow] / 4;
     
    293289    NSString * sizeString = [NSString stringWithFormat: @" (%@)",
    294290        [NSString stringForFileSize: [fTorrent size]]];
    295     string = [[[fTorrent name] stringFittingInWidth: fWidth -
     291    string = [[[fTorrent name] stringFittingInWidth: fWidth - 40 -
    296292        [sizeString sizeWithAttributes: attributes].width
    297293        withAttributes: attributes] stringByAppendingString: sizeString];
Note: See TracChangeset for help on using the changeset viewer.