Skip to content

Commit

Permalink
fix: Fixed display issues on macOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
macmade committed Jun 20, 2024
1 parent 4c0e8dc commit 4ac4804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Hot/Classes/GraphView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class GraphView: NSView
return
}

let path = NSBezierPath( roundedRect: rect.insetBy( dx: 1, dy: 1 ), xRadius: 10, yRadius: 10 )
let path = NSBezierPath( roundedRect: self.bounds.insetBy( dx: 1, dy: 1 ), xRadius: 10, yRadius: 10 )

NSColor.controlTextColor.withAlphaComponent( 0.2 ).setStroke()
NSColor.controlTextColor.withAlphaComponent( 0.05 ).setFill()
Expand All @@ -64,7 +64,7 @@ public class GraphView: NSView
let path1 = NSBezierPath()
let path2 = NSBezierPath()
var i = CGFloat( 0 )
let rect = rect.insetBy( dx: 10, dy: 10 )
let rect = self.bounds.insetBy( dx: 10, dy: 10 )

for i in 0 ... 100
{
Expand Down

0 comments on commit 4ac4804

Please sign in to comment.