summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorFelix Dick <felix.dick@web.de>2022-09-26 06:35:00 +0200
committerFelix Dick <felix.dick@web.de>2022-09-26 06:35:00 +0200
commitc48336aac343317dc0e31d148c71c3a83b11b619 (patch)
tree83023d75296cbad9b3beb3802d1ff1c9fd41c299 /src/render/OpenGL.cpp
parentf70b57f360f8117ecca67d6d7f75c1f87b098794 (diff)
Scale the cairo matrix to fit the monitor dimensions.
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 2 insertions, 0 deletions
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);