Fix window coordinate saving and loading

This commit is contained in:
Cacodemon345
2022-07-05 16:40:04 +06:00
parent 81be6e5cb5
commit a809942d4f
4 changed files with 39 additions and 24 deletions

View File

@@ -32,6 +32,7 @@ extern "C" {
void HardwareRenderer::resizeGL(int w, int h)
{
m_context->makeCurrent(this);
glViewport(0, 0, qRound(w * devicePixelRatio()), qRound(h * devicePixelRatio()));
}