mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
a little extra drawing so that there are no gaps in the progress bar
This commit is contained in:
@@ -290,7 +290,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||
{
|
||||
if (!fWhiteGradient)
|
||||
fWhiteGradient = [[CTGradient progressWhiteGradient] retain];
|
||||
[fWhiteGradient fillRect: NSMakeRect(width * progress, 0, width * left, BAR_HEIGHT) angle: -90];
|
||||
[fWhiteGradient fillRect: NSMakeRect(0, 0, width, BAR_HEIGHT) angle: -90];
|
||||
|
||||
float include = progress + left;
|
||||
if (include < 1.0)
|
||||
|
||||
Reference in New Issue
Block a user