From 183b77ab27d5a92dcb5b279d82d2e49a91ef0cb1 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 27 Mar 2008 03:43:44 +0000 Subject: [PATCH] slight math adjustment --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index b1e607381..e500ebc37 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -3865,7 +3865,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi searchFrame.size.width = SEARCH_FILTER_MIN_WIDTH; //resize the buttons so they don't overlay - int difference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x; + int difference = (NSMaxX(pauseRect) + 5.0) - searchFrame.origin.x - 1; //subtract 1, since 0 will be counted //decrease downloading by 8, seeding by 1, paused by 1, active by 1, repeat int download = (difference / 11 * 8) + MIN(difference % 11 + 1, 8); //8 for every 11