Эх сурвалжийг харах

calculate full size more reasonably part 2

vaxerski 3 жил өмнө
parent
commit
280ef71448

+ 2 - 0
src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp

@@ -23,6 +23,8 @@ void CWaylandOutput::updateViewports() {
         m_viewports[o->name] = {{0, 0, o->lsSize.x * o->scale, o->lsSize.y * o->scale}, o->name};
 
         fullw = fullw + glm::ivec2{o->lsSize.x * o->scale, 0};
+        if (o->lsSize.y > fullw.y)
+            fullw.y = o->lsSize.y;
     }
 
     m_fullWidth = fullw.x;