Support hd background

This commit is contained in:
Velaron 2023-11-23 15:03:08 +02:00
parent 75e0eb8f7d
commit 2e39432e04

View file

@ -23,7 +23,11 @@ object BackgroundBitmap {
var width: Int
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) {
val dir = file.findFile("resource")?.findFile("background")
for (i in 0 until BACKGROUND_ROWS) {