aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgtexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/util/qsgtexture.h')
-rw-r--r--src/quick/scenegraph/util/qsgtexture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/util/qsgtexture.h b/src/quick/scenegraph/util/qsgtexture.h
index df07382d10..a31d09e70b 100644
--- a/src/quick/scenegraph/util/qsgtexture.h
+++ b/src/quick/scenegraph/util/qsgtexture.h
@@ -76,7 +76,7 @@ public:
virtual bool hasAlphaChannel() const = 0;
virtual bool hasMipmaps() const = 0;
- virtual QRectF textureSubRect() const;
+ virtual QRectF normalizedTextureSubRect() const;
virtual bool isAtlasTexture() const;
@@ -106,7 +106,7 @@ protected:
QRectF QSGTexture::convertToNormalizedSourceRect(const QRectF &rect) const
{
QSize s = textureSize();
- QRectF r = textureSubRect();
+ QRectF r = normalizedTextureSubRect();
qreal sx = r.width() / s.width();
qreal sy = r.height() / s.height();