Specify the screenshot size and remove debug print
commit073546674ec8367093109874d21d8cd4a7079d10
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateMon 18 Aug 2014, 09:22 (12 years ago)
parent037720c
qml/Stages/ApplicationWindow.qml+3−1
@@ -112,7 +112,9 @@ Item {
112112 source = "image://application/" + root.application.appId + "/" + timeMs;
113113 }
114114
115− onSourceChanged: { console.log("screenshotImage.source = " + source); }
115+ // Save memory by using a half-resolution (thus quarter size) screenshot
116+ sourceSize.width: root.width / 2
117+ sourceSize.height: root.height / 2
116118 }
117119
118120 Loader {