mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix trickplay image scaling (#477)
Fix to #467 to scale the tiles by the actual calculated ratio based on the server's fixed width and our target width instead of using the general density scaling I verified this on 1080p & 4k with 4:3, 16:9, & 2.35:1 videos. Fixes https://github.com/damontecres/Wholphin/issues/432#issuecomment-3657381461
This commit is contained in:
parent
ebfc00c016
commit
d5a55ce4ad
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ fun SeekPreviewImage(
|
|||
if (previewImageUrl.isNotNullOrBlank()) {
|
||||
val height = 160.dp
|
||||
val width = height * (trickPlayInfo.width.toFloat() / trickPlayInfo.height)
|
||||
val scale = LocalDensity.current.density
|
||||
val scale = with(LocalDensity.current) { width.toPx() / trickPlayInfo.width }
|
||||
|
||||
val model =
|
||||
remember(previewImageUrl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue