Avoid drawing out of bounds by drawing just the intersection of dirtyRect and bounds.
This commit is contained in:
parent
97757a567f
commit
ccb1b8294e
@ -89,7 +89,8 @@ final class IconView: NSView {
|
||||
|
||||
let color = NSApplication.shared.effectiveAppearance.isDarkMode ? IconView.darkBackgroundColor : IconView.lightBackgroundColor
|
||||
color.set()
|
||||
dirtyRect.fill()
|
||||
let r = NSIntersectionRect(dirtyRect, bounds)
|
||||
r.fill()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user