2 parents 7f7541a + 1b8a0eb commit 74fdc91Copy full SHA for 74fdc91
1 file changed
Sources/SwiftTerm/Apple/AppleTerminalView.swift
@@ -766,6 +766,9 @@ extension TerminalView {
766
}
767
768
#if os(macOS)
769
+ // NSRect.fill() uses NSColor (set via NSColor.set()/setFill()),
770
+ // not CGContext's fill color. Must call setFill() before fill().
771
+ backgroundColor.setFill()
772
rect.fill(using: .destinationOver)
773
#else
774
context.fill(rect)
0 commit comments