1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

the check mark indicating completed peers in the inspector was being stretched because the x-coordinate wasn't being floor()ed

This commit is contained in:
Mitchell Livingston 2011-02-19 19:30:24 +00:00
parent bd5739fc54
commit 33422cc9d5

View file

@ -81,7 +81,8 @@
NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"]; NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"];
const NSSize imageSize = [checkImage size]; const NSSize imageSize = [checkImage size];
const NSRect rect = NSMakeRect(NSMidX(cellFrame) - imageSize.width * 0.5, NSMidY(cellFrame) - imageSize.height * 0.5, const NSRect rect = NSMakeRect(floor(NSMidX(cellFrame) - imageSize.width * 0.5),
floor(NSMidY(cellFrame) - imageSize.height * 0.5),
imageSize.width, imageSize.height); imageSize.width, imageSize.height);
if ([NSApp isOnSnowLeopardOrBetter]) if ([NSApp isOnSnowLeopardOrBetter])