fix full size

This commit is contained in:
vaxerski 2023-04-19 20:26:09 +01:00
parent fd810295d7
commit d14442fd7f

View File

@ -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 ()