[orx-panel] remove calls to Drawer.size

This commit is contained in:
Edwin Jakobs
2021-07-20 20:03:20 +02:00
parent ea516e0a4c
commit ea72420801
2 changed files with 0 additions and 2 deletions

View File

@@ -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()

View File

@@ -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)
} }