1
0
Fork 0
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:
Mitchell Livingston 2006-06-15 16:01:26 +00:00
parent 96d62e8ca9
commit c1e764a03a

View file

@ -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];