a little extra drawing so that there are no gaps in the progress bar

This commit is contained in:
Mitchell Livingston 2007-08-14 03:15:03 +00:00
parent 9133c4b919
commit b63ddf0676
1 changed files with 1 additions and 1 deletions

View File

@ -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)