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:
parent
bd5739fc54
commit
33422cc9d5
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue