From 8b5369aa7cf525b01842fc8bad6db829c60b4418 Mon Sep 17 00:00:00 2001 From: Alexandre G Pereira Date: Thu, 22 Aug 2024 14:15:06 -0300 Subject: [PATCH] Fix - Monster registration image always been scale content fit --- .../hunter/monster/registration/mapper/StateMapper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/feature/monster-registration/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/registration/mapper/StateMapper.kt b/feature/monster-registration/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/registration/mapper/StateMapper.kt index 15cf4eb5..66b01aa2 100644 --- a/feature/monster-registration/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/registration/mapper/StateMapper.kt +++ b/feature/monster-registration/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/registration/mapper/StateMapper.kt @@ -69,6 +69,7 @@ internal fun Metadata.asState(strings: MonsterRegistrationStrings): MonsterState typeIndex = MonsterType.entries.indexOf(monster.type), typeOptions = MonsterType.entries.map { it.name(strings) }, challengeRating = monster.challengeRatingData.valueInString, + imageContentScale = monster.imageData.contentScale, ), stats = StatsState( armorClass = monster.stats.armorClass,