Use pixel coordinates
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 14 Apr 2011 11:24:27 +0000 (13:24 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 14 Apr 2011 11:24:27 +0000 (13:24 +0200)
src/qt-compositor/compositor_api/waylandsurfaceitem.cpp

index c74ad69..52e2841 100644 (file)
@@ -173,7 +173,7 @@ QSGNode *WaylandSurfaceItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa
     if (!node) {
         node = new QSGSimpleTextureNode();
         node->setTexture(m_texture);
     if (!node) {
         node = new QSGSimpleTextureNode();
         node->setTexture(m_texture);
-        node->setSourceRect(QRectF(0, 0, 1, 1));
+        node->setSourceRect(QRectF(0, 0, width(), height()));
     }
 
     node->setRect(QRectF(0, 0, width(), height()));
     }
 
     node->setRect(QRectF(0, 0, width(), height()));