aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/OSD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/OSD.cpp')
-rw-r--r--src/frontend/qt_sdl/OSD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/OSD.cpp b/src/frontend/qt_sdl/OSD.cpp
index 25072df..3734b76 100644
--- a/src/frontend/qt_sdl/OSD.cpp
+++ b/src/frontend/qt_sdl/OSD.cpp
@@ -418,7 +418,7 @@ void DrawNative(QPainter& painter)
Rendering.unlock();
}
-void DrawGL(float w, float h)
+void DrawGL(float w, float h, float factor)
{
if (!Config::ShowOSD) return;
if (!mainWindow || !mainWindow->panel) return;
@@ -430,7 +430,7 @@ void DrawGL(float w, float h)
glUseProgram(Shader[2]);
glUniform2f(uScreenSize, w, h);
- glUniform1f(uScaleFactor, mainWindow->devicePixelRatioF());
+ glUniform1f(uScaleFactor, factor);
glBindBuffer(GL_ARRAY_BUFFER, OSDVertexBuffer);
glBindVertexArray(OSDVertexArray);