瀏覽代碼

calculate full size more reasonably

vaxerski 3 年之前
父節點
當前提交
8684c8d60f
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp

+ 1 - 1
src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp

@@ -22,7 +22,7 @@ void CWaylandOutput::updateViewports() {
     for (auto& o : PDRIVER->m_outputs) {
         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, o->lsSize.y * o->scale};
+        fullw = fullw + glm::ivec2{o->lsSize.x * o->scale, 0};
     }
 
     m_fullWidth = fullw.x;