From c48336aac343317dc0e31d148c71c3a83b11b619 Mon Sep 17 00:00:00 2001 From: Felix Dick Date: Mon, 26 Sep 2022 06:35:00 +0200 Subject: [PATCH] Scale the cairo matrix to fit the monitor dimensions. --- src/render/OpenGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 2ae8d747..dee2ba36 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1171,6 +1171,8 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) { const auto CAIRO = cairo_create(CAIROSURFACE); + cairo_scale(CAIRO, textureSize.x / pMonitor->vecTransformedSize.x, textureSize.y / pMonitor->vecTransformedSize.y); + if (!*PNOSPLASH) renderSplash(CAIRO, CAIROSURFACE);