Changeset 2793
- Timestamp:
- Aug 16, 2007, 3:58:50 AM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PiecesView.m
r2789 r2793 312 312 } 313 313 314 free(showAvailablity ? pieces : piecesPercent); 314 if (showAvailablity) 315 free(pieces); 316 else 317 free(piecesPercent); 315 318 } 316 319 -
trunk/macosx/Torrent.h
r2760 r2793 57 57 NSUserDefaults * fDefaults; 58 58 59 NSImage * fIcon, * fIconFlipped , * fIconSmall;59 NSImage * fIcon, * fIconFlipped; 60 60 NSMutableString * fNameString, * fProgressString, * fStatusString, * fShortStatusString, * fRemainingTimeString; 61 61 … … 131 131 - (NSImage *) icon; 132 132 - (NSImage *) iconFlipped; 133 - (NSImage *) iconSmall;134 133 135 134 - (NSString *) name; -
trunk/macosx/Torrent.m
r2761 r2793 158 158 [fIcon release]; 159 159 [fIconFlipped release]; 160 [fIconSmall release];161 160 162 161 [fProgressString release]; … … 833 832 } 834 833 835 - (NSImage *) iconSmall836 {837 if (!fIconSmall)838 {839 fIconSmall = [fIcon copy];840 [fIconSmall setFlipped: YES];841 [fIconSmall setScalesWhenResized: YES];842 [fIconSmall setSize: NSMakeSize(16.0, 16.0)];843 }844 return fIconSmall;845 }846 847 834 - (NSString *) name 848 835 { -
trunk/macosx/TorrentCell.m
r2792 r2793 210 210 211 211 //icon 212 NSImage * icon = minimal ? (error ? fErrorImage : [torrent iconSmall]): [torrent iconFlipped];212 NSImage * icon = minimal && error ? fErrorImage : [torrent iconFlipped]; 213 213 NSRect iconRect = [self iconRectForBounds: cellFrame]; 214 214 [icon drawInRect: iconRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0]; -
trunk/macosx/TorrentTableView.m
r2792 r2793 452 452 return NSZeroRect; 453 453 454 NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"]row: row];454 NSRect cellRect = [self frameOfCellAtColumn: 0 row: row]; 455 455 456 456 float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR; … … 465 465 return NSZeroRect; 466 466 467 NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"]row: row];467 NSRect cellRect = [self frameOfCellAtColumn: 0 row: row]; 468 468 469 469 float buttonToTop = [fDefaults boolForKey: @"SmallView"] ? BUTTON_TO_TOP_SMALL : BUTTON_TO_TOP_REGULAR;
Note: See TracChangeset
for help on using the changeset viewer.