Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ class LibGDXCanvas(
adapter.render()
}

override fun fireReshapeEvent(width: Int, height: Int) {
super.fireReshapeEvent(width, height)
adapter.resize(width, height)
}

override fun fireInitEvent() {
if(!::application.isInitialized) {
application = OGLFXApplication(configuration, this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class OGLFXGraphics(val canvas: GLCanvas): AbstractGraphics() {
override fun setGL31(gl31: GL31?) { this.gl31 = gl31 }
override fun setGL32(gl32: GL32?) { this.gl32 = gl32 }

override fun getWidth() = canvas.scaledWidth
override fun getHeight() = canvas.scaledHeight
override fun getWidth() = canvas.width.toInt()
override fun getHeight() = canvas.height.toInt()
override fun getBackBufferWidth() = canvas.scaledWidth
override fun getBackBufferHeight() = canvas.scaledHeight

Expand Down