From eddf7c5465ed1afb392ce5cc0b1a1146a722da03 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 22 Dec 2007 19:07:58 +0000 Subject: [PATCH] slightly better behavior when placing the not-available bar --- macosx/IPCController.m | 2 +- macosx/TorrentCell.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/IPCController.m b/macosx/IPCController.m index 3bbbea388..da7af7761 100644 --- a/macosx/IPCController.m +++ b/macosx/IPCController.m @@ -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: diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 986302281..2cff23201 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -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)