Skip to content

Commit

Permalink
Fix giant egg which showed up in Subtitles sidebar in MacOS 14.0 Sono…
Browse files Browse the repository at this point in the history
…ma (#4640)

Changes RoundedColorWell to use bounds instead of dirtyRect, which
should be much more reliable, and gets rid of the egg.
  • Loading branch information
svobs committed Oct 6, 2023
1 parent 655dbf8 commit 2ec4e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iina/RoundedColorWell.swift
Expand Up @@ -18,7 +18,7 @@ class RoundedColorWell: NSColorWell {
}

override func draw(_ dirtyRect: NSRect) {
let circleRect = NSInsetRect(dirtyRect, 3, 3)
let circleRect = NSInsetRect(bounds, 3, 3)

// darker if is pressing mouse button
if self.isMouseDown {
Expand Down

0 comments on commit 2ec4e36

Please sign in to comment.