Quellcode durchsuchen

calculate full size more reasonably

vaxerski vor 3 Jahren
Ursprung
Commit
8684c8d60f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;