[orx-panel] remove calls to Drawer.size
This commit is contained in:
@@ -524,7 +524,6 @@ class ControlManager : Extension {
|
||||
}
|
||||
|
||||
profile("draw image") {
|
||||
drawer.size(program.width, program.height)
|
||||
drawer.ortho()
|
||||
drawer.view = Matrix44.IDENTITY
|
||||
drawer.defaults()
|
||||
|
||||
@@ -33,7 +33,6 @@ class Canvas : Element(ElementType("canvas")) {
|
||||
model = Matrix44.IDENTITY
|
||||
view = Matrix44.IDENTITY
|
||||
clear(ColorRGBa.TRANSPARENT)
|
||||
size(screenArea.width.toInt(), screenArea.height.toInt())
|
||||
ortho(rt)
|
||||
userDraw?.invoke(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user