diff options
Diffstat (limited to 'src/frontend/qt_sdl/main.cpp')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index fa293cf..c25aa38 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -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; |