effects: Fix a typo in RenderGeometry::appendWindowVertex()
Only the y coord is scaled, but both x and y coords have to be scaled.
This commit is contained in:
parent
ff092b12b0
commit
d42442b424
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ void RenderGeometry::appendWindowVertex(const WindowVertex &windowVertex, qreal
|
|||
GLVertex2D glVertex;
|
||||
switch (m_vertexSnappingMode) {
|
||||
case VertexSnappingMode::None:
|
||||
glVertex.position = QVector2D(windowVertex.x(), windowVertex.y() * deviceScale);
|
||||
glVertex.position = QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale;
|
||||
break;
|
||||
case VertexSnappingMode::Round:
|
||||
glVertex.position = roundVector(QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale);
|
||||
|
|
Loading…
Reference in a new issue