mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01: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:
@@ -81,7 +81,8 @@
|
||||
NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"];
|
||||
|
||||
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);
|
||||
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
|
||||
Reference in New Issue
Block a user