PCB // Fix font rendering issue on non-retina displays.

This commit is contained in:
ShikiSuen 2022-09-11 22:59:55 +08:00
parent 6659cddddd
commit 5e989c9e98
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ public class ctlPopupCompositionBuffer: NSWindowController {
var bigRect = rect
bigRect.size.width += NSFont.systemFontSize
bigRect.size.height += NSFont.systemFontSize
rect.origin.x += NSFont.systemFontSize / 2
rect.origin.y += NSFont.systemFontSize / 2
rect.origin.x += ceil(NSFont.systemFontSize / 2)
rect.origin.y += ceil(NSFont.systemFontSize / 2)
messageTextField.frame = rect
window?.setFrame(bigRect, display: true)
}