Skip to content

Commit

Permalink
Update MSDisplayLink to 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Jan 6, 2025
1 parent 36b7d5c commit 60f3955
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Lakr233/MSDisplayLink.git",
"state" : {
"revision" : "89e224c797de6d2ec6552a568f62ef9ba016def0",
"version" : "1.1.0"
"revision" : "6e92b5513e3473e064685e64056c4ac46470e7b0",
"version" : "2.0.3"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/Lakr233/ColorVector.git", from: "1.0.3"),
.package(url: "https://github.com/Lakr233/SpringInterpolation.git", from: "1.2.2"),
.package(url: "https://github.com/Lakr233/MSDisplayLink.git", from: "1.1.1"),
.package(url: "https://github.com/Lakr233/MSDisplayLink.git", from: "2.0.3"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/ColorfulX/MetalLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MetalLink: DisplayLinkDelegate {
metalLayer.drawableSize = CGSize(width: width, height: height)
}

func synchronization() {
func synchronization(context _: DisplayLinkCallbackContext) {
onSynchronizationUpdate?()
}
}
2 changes: 1 addition & 1 deletion Sources/ColorfulX/MetalView+AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import Foundation
frame.height > 0,
alphaValue > 0,
!isHidden,
].allSatisfy { $0 }
].allSatisfy(\.self)

Check failure on line 47 in Sources/ColorfulX/MetalView+AppKit.swift

View workflow job for this annotation

GitHub Actions / build

cannot convert value of type 'WritableKeyPath<_, _>' to expected argument type '(Bool) throws -> Bool'

Check failure on line 47 in Sources/ColorfulX/MetalView+AppKit.swift

View workflow job for this annotation

GitHub Actions / build

cannot infer key path type from context; consider explicitly specifying a root type
}

override open var frame: NSRect {
Expand Down
2 changes: 1 addition & 1 deletion Sources/ColorfulX/MetalView+UIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
frame.height > 0,
alpha > 0,
!isHidden,
].allSatisfy { $0 }
].allSatisfy(\.self)
}

override open var frame: CGRect {
Expand Down

0 comments on commit 60f3955

Please sign in to comment.