From 74324bb1f18fa5d8fd28c29ce96f04df0878713b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 29 May 2007 21:26:20 +0000 Subject: [PATCH] get rid of a ceilf --- macosx/FilterBarButton.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/macosx/FilterBarButton.m b/macosx/FilterBarButton.m index 1ca4987ae..9a179342b 100644 --- a/macosx/FilterBarButton.m +++ b/macosx/FilterBarButton.m @@ -73,8 +73,6 @@ NSString * string = [NSString stringWithInt: count]; NSSize stringSize = [string sizeWithAttributes: attributes]; - stringSize.width = ceilf(stringSize.width); - NSRect badgeRect = NSMakeRect(0, 0, stringSize.width + 6.0, stringSize.height); //create badge part @@ -92,8 +90,7 @@ [badge lockFocus]; [string drawAtPoint: NSMakePoint((badgeRect.size.width - stringSize.width) * 0.5, - (badgeRect.size.height - stringSize.height) * 0.5) - withAttributes: attributes]; + (badgeRect.size.height - stringSize.height) * 0.5) withAttributes: attributes]; [tempBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOut]; [badge unlockFocus];