Fix OpenGL display scaling on high DPI (#1011)

* Fix OpenGL display scaling on high DPI

* Scale the OSD too

* Fix indent
This commit is contained in:
Nadia Holmquist Pedersen
2021-02-22 18:17:48 +01:00
committed by GitHub
parent 532dc57025
commit 97643586fa
4 changed files with 11 additions and 5 deletions

View File

@ -1004,7 +1004,8 @@ void ScreenPanelGL::paintGL()
{
screenShader->bind();
screenShader->setUniformValue("uScreenSize", (float)w*factor, (float)h*factor);
screenShader->setUniformValue("uScreenSize", (float)w, (float)h);
screenShader->setUniformValue("uScaleFactor", factor);
emuThread->FrontBufferLock.lock();
int frontbuf = emuThread->FrontBuffer;