Skip to content

Commit 1236c0d

Browse files
committed
Use view instead of window
1 parent 96e0827 commit 1236c0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GateEngine/System/Rendering/Drawables/Canvas.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@
492492
- parameter estimatedCommandCount: A performance hint of how many commands will be added.
493493
*/
494494
@_transparent
495-
public init(window: Window, camera: Camera? = nil, estimatedCommandCount: Int = 10) {
495+
public init(view: View, camera: Camera? = nil, estimatedCommandCount: Int = 10) {
496496
self.init(
497497
camera: camera,
498-
size: window.bounds.size,
499-
interfaceScale: window.interfaceScale,
498+
size: view.bounds.size,
499+
interfaceScale: view.interfaceScale,
500500
estimatedCommandCount: estimatedCommandCount
501501
)
502502
}

0 commit comments

Comments
 (0)