pixelIndex -> pixel since image is now 32-bit
authorGunnar Sletta <gunnar.sletta@digia.com>
Sun, 28 Apr 2013 17:24:59 +0000 (19:24 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 7 May 2013 08:15:21 +0000 (10:15 +0200)
Change-Id: Iac3c8d60d531a93ce6e862dbdfdf53e49e0d2185
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/particles/qquickmaskextruder.cpp

index f8ed042..d59902b 100644 (file)
@@ -118,7 +118,7 @@ bool QQuickMaskExtruder::contains(const QRectF &bounds, const QPointF &point)
     QPointF pt = point - bounds.topLeft();
     QPoint p(pt.x() * m_img.width() / bounds.width(),
              pt.y() * m_img.height() / bounds.height());
-    return m_img.rect().contains(p) && (bool)m_img.pixelIndex(p);
+    return m_img.rect().contains(p) && (m_img.pixel(p) & 0xff000000);
 }
 
 void QQuickMaskExtruder::ensureInitialized(const QRectF &rf)