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