some
This commit is contained in:
1 parent
aa541a8e23
commit
1dc202b1af
5 files changed
+35
-9
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import UIKit
|
||||
|
||||
func renderDraw(_ vm: RenderVM) {
|
||||
raybriRender(vm.pixelSize[0], vm.pixelSize[1])
|
||||
}
|
||||
|
||||
func renderPixelSize(_ view: UIView) -> [Int32] {
|
||||
let scale = view.contentScaleFactor
|
||||
let w = Int32(max(1, (view.bounds.width * scale).rounded()))
|
||||
|
||||
Reference in new issue
Block a user