Changeset 10401
- Timestamp:
- Mar 20, 2010, 3:51:29 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentCell.m
r10400 r10401 499 499 - (void) drawBar: (NSRect) barRect 500 500 { 501 const BOOL minimal = [fDefaults boolForKey: @"SmallView"]; 502 501 503 const CGFloat piecesBarPercent = [(TorrentTableView *)[self controlView] piecesBarPercent]; 502 if (piecesBarPercent > 0.0 )504 if (piecesBarPercent > 0.0 && ([NSApp isOnSnowLeopardOrBetter] || !minimal)) 503 505 { 504 506 NSRect piecesBarRect, regularBarRect; … … 516 518 } 517 519 518 if (! [fDefaults boolForKey: @"SmallView"])520 if (!minimal) 519 521 { 520 522 [fBarBorderColor set]; … … 640 642 641 643 //actually draw image 642 [bitmap drawInRect: barRect]; 644 if ([NSApp isOnSnowLeopardOrBetter]) 645 [bitmap drawInRect: barRect fromRect: NSZeroRect operation: NSCompositeSourceOver 646 fraction: ([fDefaults boolForKey: @"SmallView"] ? 0.125 : 1.0) respectFlipped: YES hints: nil]; 647 else 648 [bitmap drawInRect: barRect]; 649 643 650 [bitmap release]; 644 651 }
Note: See TracChangeset
for help on using the changeset viewer.