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:
Vlad Zahorodnii 2023-01-16 19:59:30 +02:00
parent ff092b12b0
commit d42442b424

View file

@ -1033,7 +1033,7 @@ void RenderGeometry::appendWindowVertex(const WindowVertex &windowVertex, qreal
GLVertex2D glVertex; GLVertex2D glVertex;
switch (m_vertexSnappingMode) { switch (m_vertexSnappingMode) {
case VertexSnappingMode::None: case VertexSnappingMode::None:
glVertex.position = QVector2D(windowVertex.x(), windowVertex.y() * deviceScale); glVertex.position = QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale;
break; break;
case VertexSnappingMode::Round: case VertexSnappingMode::Round:
glVertex.position = roundVector(QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale); glVertex.position = roundVector(QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale);