mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 05:46:48 +08:00
calculate full size more reasonably
This commit is contained in:
parent
a782fdd1f2
commit
8684c8d60f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user