PCB // Fix font rendering issue on non-retina displays.
This commit is contained in:
parent
6659cddddd
commit
5e989c9e98
|
@ -119,8 +119,8 @@ public class ctlPopupCompositionBuffer: NSWindowController {
|
||||||
var bigRect = rect
|
var bigRect = rect
|
||||||
bigRect.size.width += NSFont.systemFontSize
|
bigRect.size.width += NSFont.systemFontSize
|
||||||
bigRect.size.height += NSFont.systemFontSize
|
bigRect.size.height += NSFont.systemFontSize
|
||||||
rect.origin.x += NSFont.systemFontSize / 2
|
rect.origin.x += ceil(NSFont.systemFontSize / 2)
|
||||||
rect.origin.y += NSFont.systemFontSize / 2
|
rect.origin.y += ceil(NSFont.systemFontSize / 2)
|
||||||
messageTextField.frame = rect
|
messageTextField.frame = rect
|
||||||
window?.setFrame(bigRect, display: true)
|
window?.setFrame(bigRect, display: true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue