mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user