Skip to content

Commit

Permalink
Use the texture atlas height to compute y coordinates
Browse files Browse the repository at this point in the history
Change-Id: Ib0266ef6a46f58fe2c2892b8be297efe2f85aa98
Reviewed-by: aavit <qt_aavit@ovi.com>
  • Loading branch information
Gunnar Sletta authored and Qt by Nokia committed Dec 5, 2011
1 parent 1817efd commit 5c9179b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quick/items/qquickninepatchnode.cpp
Expand Up @@ -271,7 +271,7 @@ void QQuickNinePatchNode::fillRow(QSGGeometry::TexturedPoint2D *&v, float y, flo
const QRectF &tsr, // texture sub rect, for atlasses
const QSize &ts) // texture size in pixels
{
ty = tsr.y() + ty * tsr.width();
ty = tsr.y() + ty * tsr.height();

float tw = ts.width();
float rightBorder = tw - m_innerRect.right();
Expand Down

0 comments on commit 5c9179b

Please sign in to comment.