aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-09-05 11:31:54 +0200
committervaxerski <[email protected]>2022-09-05 11:31:54 +0200
commit3ea89e6171566aa3bac576b314edd86f34dbbb6a (patch)
tree3eea2e224a8d98140b54a83c3ccbaefb1041dfd6 /src/render/OpenGL.cpp
parentd6c06318afbed8929464be6e2045654e9b1932d1 (diff)
downloadHyprland-3ea89e6171566aa3bac576b314edd86f34dbbb6a.tar.gz
Hyprland-3ea89e6171566aa3bac576b314edd86f34dbbb6a.zip
fix splash positioning
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 3c8a45b1..fc179232 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -1097,7 +1097,7 @@ void CHyprOpenGLImpl::renderSplash(cairo_t *const CAIRO, cairo_surface_t *const
cairo_text_extents_t textExtents;
cairo_text_extents(CAIRO, g_pCompositor->m_szCurrentSplash.c_str(), &textExtents);
- cairo_move_to(CAIRO, m_RenderData.pMonitor->vecTransformedSize.x / 2.f - textExtents.width / 2.f, m_RenderData.pMonitor->vecTransformedSize.y - textExtents.height - 1);
+ cairo_move_to(CAIRO, m_RenderData.pMonitor->vecPixelSize.x / 2.f - textExtents.width / 2.f, m_RenderData.pMonitor->vecPixelSize.y - textExtents.height - 1);
cairo_show_text(CAIRO, g_pCompositor->m_szCurrentSplash.c_str());
cairo_surface_flush(CAIROSURFACE);