From d14442fd7f8e9f1bff57603697ac0f46c5b16cc7 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:26:09 +0100 Subject: [PATCH] fix full size --- .../Render/Drivers/Output/CWaylandOutput.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp b/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp index 07024f3..c447200 100644 --- a/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp +++ b/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp @@ -9,9 +9,15 @@ CWaylandOutput::CWaylandOutput (CApplicationContext& context, CVideoDriver& driv m_driver (driver) { const auto PDRIVER = (CWaylandOpenGLDriver*)&driver; + glm::ivec2 fullw = {0,0}; for (auto& o : PDRIVER->m_outputs) { m_viewports[o->name] = {{0, 0, o->size.x, o->size.y}, o->name}; + + fullw = fullw + glm::ivec2{o->size.x, o->size.y}; } + + m_fullWidth = fullw.x; + m_fullHeight = fullw.y; } CWaylandOutput::~CWaylandOutput ()