Limit max memory usage of images
This commit is contained in:
parent
07b5f0805f
commit
d409bab838
@ -2,7 +2,8 @@
|
|||||||
//
|
//
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// 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
|
import im.nheko 1.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
@ -46,6 +47,8 @@ Item {
|
|||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
|
|
||||||
|
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined)
|
||||||
|
sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
MxcAnimatedImage {
|
MxcAnimatedImage {
|
||||||
|
Loading…
Reference in New Issue
Block a user