mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
This might fix bar overlapping (but who really cares since it can't be seen on normal builds anyways)
This commit is contained in:
parent
96d62e8ca9
commit
c1e764a03a
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@
|
|||
@interface TorrentCell (Private)
|
||||
|
||||
- (void) placeBar: (NSImage *) barImage width: (float) width point: (NSPoint) point;
|
||||
- (void) buildSimpleBar: (int) widthInt point: (NSPoint) point;
|
||||
- (void) buildSimpleBar: (int) width point: (NSPoint) point;
|
||||
- (void) buildAdvancedBar: (int) width point: (NSPoint) point;
|
||||
|
||||
@end
|
||||
|
@ -119,9 +119,9 @@ static uint32_t kRed = 0xFF6450FF, //255, 100, 80
|
|||
operation: NSCompositeSourceOver];
|
||||
}
|
||||
|
||||
- (void) buildSimpleBar: (int) widthInt point: (NSPoint) point
|
||||
- (void) buildSimpleBar: (int) width point: (NSPoint) point
|
||||
{
|
||||
float width = (float)widthInt - 2.0;
|
||||
width -= 2.0;
|
||||
if ([fTorrent isSeeding])
|
||||
{
|
||||
[fProgressEndGreen compositeToPoint: point operation: NSCompositeSourceOver];
|
||||
|
@ -134,7 +134,7 @@ static uint32_t kRed = 0xFF6450FF, //255, 100, 80
|
|||
}
|
||||
else
|
||||
{
|
||||
float completedWidth = [fTorrent progress] * width,
|
||||
int completedWidth = [fTorrent progress] * width,
|
||||
remainingWidth = width - completedWidth;
|
||||
BOOL isActive = [fTorrent isActive];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue