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