Fix move between Retina / Non-Retina.

This commit is contained in:
John Preston 2021-06-16 10:29:22 +04:00
parent 4837b47623
commit 34a867b2a0

View file

@ -97,11 +97,7 @@ void SurfaceOpenGL::paintEvent(QPaintEvent *e) {
f->glClear(GL_COLOR_BUFFER_BIT); f->glClear(GL_COLOR_BUFFER_BIT);
} }
f->glDisable(GL_BLEND); f->glDisable(GL_BLEND);
f->glViewport( f->glViewport(0, 0, device->width(), device->height());
0,
0,
width() * devicePixelRatio(),
height() * devicePixelRatio());
_renderer->paint(this, *f); _renderer->paint(this, *f);
engine->end(); engine->end();
} }