mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
fix overlapping dock badging
This commit is contained in:
parent
9c93ac23b0
commit
91c7f0ae45
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@
|
|||
//string is in center of image
|
||||
NSSize stringSize = [string sizeWithAttributes: fAttributes];
|
||||
|
||||
NSRect stringRect;
|
||||
NSRect stringRect = badgeRect;
|
||||
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
|
||||
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
|
||||
stringRect.size = stringSize;
|
||||
|
|
Loading…
Reference in a new issue