Fixes for MPV in macOS

This commit is contained in:
Arkadiusz Fal
2022-02-27 21:31:17 +01:00
parent 93943ecd83
commit a9b057505c
56 changed files with 729 additions and 376 deletions

14
macOS/MPVOGLView.swift Normal file
View File

@@ -0,0 +1,14 @@
import AppKit
final class MPVOGLView: NSView {
override init(frame frameRect: CGRect) {
super.init(frame: frameRect)
autoresizingMask = [.width, .height]
wantsBestResolutionOpenGLSurface = true
}
@available(*, unavailable)
required init?(coder _: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}