Limit how much memory we reserve for the greeter background image, allowing giant images to appear correctly.
The downside is that even if the image is smaller, we'll still reserve the whole screen size in memory. But we avoid the actual bug anyway. Fixes: 1373462
Approved by: Michael Zanetti
commit0e01c9b82913324f5c943193b592e8ee429a924f
authorMichael Terry <michael.terry@canonical.com>
dateTue 30 Sep 2014, 16:56 (12 years ago)
parent75e1570f5f953a
qml/Greeter/GreeterContent.qml+3
@@ -47,6 +47,9 @@ Item {
4747 topMargin: backgroundTopMargin
4848 }
4949 fillMode: Image.PreserveAspectCrop
50+ // Limit how much memory we'll reserve for this image
51+ sourceSize.height: height
52+ sourceSize.width: width
5053 }
5154
5255 // See Shell.qml's backgroundSettings treatment for why we need a separate