Merge branch 'master' of https://github.com/86Box/86Box
This commit is contained in:
@@ -145,7 +145,7 @@ HardwareRenderer::paintGL()
|
|||||||
QVector<QVector2D> texcoords;
|
QVector<QVector2D> texcoords;
|
||||||
QMatrix4x4 mat;
|
QMatrix4x4 mat;
|
||||||
mat.setToIdentity();
|
mat.setToIdentity();
|
||||||
mat.ortho(QRectF(0, 0, (qreal) width(), (qreal) height()));
|
mat.ortho(QRectF(0, 0, (qreal) width() * (qreal) devicePixelRatioF(), (qreal) height() * (qreal) devicePixelRatioF()));
|
||||||
verts.push_back(QVector2D((float) destination.x(), (float) destination.y()));
|
verts.push_back(QVector2D((float) destination.x(), (float) destination.y()));
|
||||||
verts.push_back(QVector2D((float) destination.x(), (float) destination.y() + (float) destination.height()));
|
verts.push_back(QVector2D((float) destination.x(), (float) destination.y() + (float) destination.height()));
|
||||||
verts.push_back(QVector2D((float) destination.x() + (float) destination.width(), (float) destination.y() + (float) destination.height()));
|
verts.push_back(QVector2D((float) destination.x() + (float) destination.width(), (float) destination.y() + (float) destination.height()));
|
||||||
|
|||||||
Reference in New Issue
Block a user