slightly better behavior when placing the not-available bar
This commit is contained in:
parent
4373e79a2b
commit
eddf7c5465
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue