mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
fix full size
This commit is contained in:
parent
fd810295d7
commit
d14442fd7f
@ -9,9 +9,15 @@ CWaylandOutput::CWaylandOutput (CApplicationContext& context, CVideoDriver& driv
|
||||
m_driver (driver)
|
||||
{
|
||||
const auto PDRIVER = (CWaylandOpenGLDriver*)&driver;
|
||||
glm::ivec2 fullw = {0,0};
|
||||
for (auto& o : PDRIVER->m_outputs) {
|
||||
m_viewports[o->name] = {{0, 0, o->size.x, o->size.y}, o->name};
|
||||
|
||||
fullw = fullw + glm::ivec2{o->size.x, o->size.y};
|
||||
}
|
||||
|
||||
m_fullWidth = fullw.x;
|
||||
m_fullHeight = fullw.y;
|
||||
}
|
||||
|
||||
CWaylandOutput::~CWaylandOutput ()
|
||||
|
Loading…
Reference in New Issue
Block a user