mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Avoid drawing out of bounds by drawing just the intersection of dirtyRect and bounds.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user