slightly better behavior when placing the not-available bar

This commit is contained in:
Mitchell Livingston 2007-12-22 19:07:58 +00:00
parent 4373e79a2b
commit eddf7c5465
2 changed files with 2 additions and 2 deletions

View File

@ -860,7 +860,7 @@ void msg_setbool( enum ipc_msg msgid, benc_val_t * val, int64_t tag, void * arg
[client sendrespEmpty:IPC_MSG_OK tag:tag];
break;
case IPC_MSG_PEX:
#warning we dont support this :(
//we dont support this :(
[client sendrespEmpty: IPC_MSG_FAIL tag: tag];
break;
default:

View File

@ -357,7 +357,7 @@
{
if ([torrent isActive] && ![torrent allDownloaded] && [fDefaults boolForKey: @"DisplayProgressBarAvailable"])
{
int notAvailableWidth = MIN(barRect.size.width * [torrent notAvailableDesired], rightWidth);
int notAvailableWidth = MIN(ceil(barRect.size.width * [torrent notAvailableDesired]), rightWidth);
rightWidth -= notAvailableWidth;
if (notAvailableWidth > 0)