Support hd background
This commit is contained in:
parent
75e0eb8f7d
commit
2e39432e04
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ object BackgroundBitmap {
|
||||||
var width: Int
|
var width: Int
|
||||||
var height = 0
|
var height = 0
|
||||||
|
|
||||||
val bgLayout = file.findFile("resource")?.findFile("BackgroundLayout.txt")
|
var bgLayout = file.findFile("resource")?.findFile("HD_BackgroundLayout.txt")
|
||||||
|
if (bgLayout == null) {
|
||||||
|
bgLayout = file.findFile("resource")?.findFile("BackgroundLayout.txt")
|
||||||
|
}
|
||||||
|
|
||||||
if (bgLayout == null) {
|
if (bgLayout == null) {
|
||||||
val dir = file.findFile("resource")?.findFile("background")
|
val dir = file.findFile("resource")?.findFile("background")
|
||||||
for (i in 0 until BACKGROUND_ROWS) {
|
for (i in 0 until BACKGROUND_ROWS) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue