recalc
This commit is contained in:
1 parent
0da8bfcfa2
commit
30476a880d
5 files changed
+69
-25
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import AppKit
|
||||
|
||||
func renderPixelSize(_ view: NSView) -> [Int32] {
|
||||
let backing = view.convertToBacking(view.bounds)
|
||||
let w = Int32(max(1, backing.width))
|
||||
let h = Int32(max(1, backing.height))
|
||||
return [w, h]
|
||||
}
|
||||
Reference in new issue
Block a user