making sure unused screen be disposed, and not breaking the app

This commit is contained in:
minjaesong
2019-01-31 13:29:40 +09:00
parent 7a5b1df81c
commit 1610b63672
6 changed files with 5 additions and 6 deletions

View File

@@ -239,7 +239,7 @@ object LoadScreen : ScreenAdapter() {
for (i in 0 until messages.elemCount) {
Terrarum.fontGame.draw(it,
messages[i] ?: "",
40f,
AppLoader.getTvSafeGraphicsWidth() + 16f,
80f + (messages.size - i - 1) * Terrarum.fontGame.lineHeight
)
}
@@ -264,7 +264,7 @@ object LoadScreen : ScreenAdapter() {
for (i in 0 until messages.elemCount) {
Terrarum.fontGame.draw(it,
messages[i] ?: "",
40f,
AppLoader.getTvSafeGraphicsWidth() + 16f,
80f + (messages.size - i - 1) * Terrarum.fontGame.lineHeight
)
}