get rid of a ceilf

This commit is contained in:
Mitchell Livingston 2007-05-29 21:26:20 +00:00
parent a0a6211779
commit 74324bb1f1
1 changed files with 1 additions and 4 deletions

View File

@ -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];