From: Gunnar Sletta Date: Tue, 23 Apr 2013 10:32:01 +0000 (+0200) Subject: Use the actual size of the image for the iteration. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=28b6c39af1c3e919e83ddace18a5252c4423431b;p=konrad%2Fqtdeclarative.git Use the actual size of the image for the iteration. If the rectangle dimension was a floating-point value, we could sample outside the image, causing tons of warnings. Change-Id: I10abece9a6b0cf769551f554fb5999d5d90e4c9d Reviewed-by: aavit --- diff --git a/src/particles/qquickmaskextruder.cpp b/src/particles/qquickmaskextruder.cpp index 3153e2b..927cf97 100644 --- a/src/particles/qquickmaskextruder.cpp +++ b/src/particles/qquickmaskextruder.cpp @@ -132,8 +132,10 @@ void QQuickMaskExtruder::ensureInitialized(const QRectF &r) m_img = m_pix.image().createAlphaMask(); m_img = m_img.convertToFormat(QImage::Format_Mono);//Else LSB, but I think that's easier m_img = m_img.scaled(r.size().toSize());//TODO: Do they need aspect ratio stuff? Or tiling? - for (int i=0; i