From a0699f52475f5a2fca9d261bb886f8680b5ecf5d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 13 Dec 2021 19:09:03 +0100 Subject: Multiply source size by scale factor Might be unnecessary, but docs are unclear on that. --- resources/qml/delegates/ImageMessage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'resources/qml/delegates') diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml index 71c7bcc6..b8522a74 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml @@ -32,8 +32,8 @@ Item { source: blurhash ? ("image://blurhash/" + blurhash) : ("image://colorimage/:/icons/icons/ui/image-failed.svg?" + Nheko.colors.buttonText) asynchronous: true fillMode: Image.PreserveAspectFit - sourceSize.width: parent.width - sourceSize.height: parent.height + sourceSize.width: parent.width * Screen.devicePixelRatio + sourceSize.height: parent.height * Screen.devicePixelRatio } Image { @@ -47,8 +47,8 @@ Item { smooth: true mipmap: true - sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined) - sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined) + sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined) * Screen.devicePixelRatio + sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined) * Screen.devicePixelRatio } MxcAnimatedImage { -- cgit 1.5.1