Skip to content
Snippets Groups Projects
Verified Commit d409bab8 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Limit max memory usage of images

parent 07b5f080
No related branches found
No related tags found
No related merge requests found
Pipeline #2236 failed
......@@ -2,7 +2,8 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.12
import QtQuick 2.15
import QtQuick.Window 2.15
import im.nheko 1.0
Item {
......@@ -46,6 +47,8 @@ Item {
smooth: true
mipmap: true
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined)
sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined)
}
MxcAnimatedImage {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment